Skip to main content

sf_api/
lib.rs

1#![warn(
2    clippy::indexing_slicing,
3    clippy::unwrap_used,
4    clippy::expect_used,
5    clippy::print_stdout,
6    clippy::print_stderr,
7    missing_debug_implementations,
8    clippy::pedantic,
9    // missing_docs
10)]
11#![allow(
12    clippy::redundant_closure_for_method_calls,
13    clippy::wildcard_imports,
14    clippy::too_many_lines,
15    clippy::field_reassign_with_default,
16    clippy::match_bool
17)]
18#![deny(unsafe_code)]
19
20pub mod command;
21pub mod error;
22pub mod gamestate;
23pub mod misc;
24pub mod response;
25#[cfg(feature = "session")]
26pub mod session;
27#[cfg(feature = "simulation")]
28pub mod simulate;
29#[cfg(feature = "sso")]
30pub mod sso;
31
32/// This is the numerical id of a player on a server. Note that in rare edge
33/// cases this might be 0 (you are the first person to unlock the Dungeon. Who
34/// do you fight?), but you can almost always expect this to be > 0
35/// wherever found
36pub type PlayerId = u32;
37
38#[cfg(feature = "session")]
39pub use session::SimpleSession;