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;
27pub mod simulate;
28#[cfg(feature = "sso")]
29pub mod sso;
30
31/// This is the numerical id of a player on a server. Note that in rare edge
32/// cases this might be 0 (you are the first person to unlock the Dungeon. Who
33/// do you fight?), but you can almost always expect this to be > 0
34/// wherever found
35pub type PlayerId = u32;
36
37#[cfg(feature = "session")]
38pub use session::SimpleSession;