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::wildcard_imports,
13    clippy::too_many_lines,
14    clippy::field_reassign_with_default,
15    clippy::match_bool
16)]
17#![deny(unsafe_code)]
18
19pub mod command;
20pub mod error;
21pub mod gamestate;
22pub mod misc;
23pub mod response;
24#[cfg(feature = "session")]
25pub mod session;
26pub mod simulate;
27#[cfg(feature = "sso")]
28pub mod sso;
29
30/// This is the numerical id of a player on a server. Note that in rare edge
31/// cases this might be 0 (you are the first person to unlock the Dungeon. Who
32/// do you fight?), but you can almost always expect this to be > 0
33/// wherever found
34pub type PlayerId = u32;
35
36#[cfg(feature = "session")]
37pub use session::SimpleSession;