Skip to main content

wowlab_types/
lib.rs

1// #t(file: rust_unbalanced_crate_root) the canonical API is intentionally module-only so every domain item has one public path
2
3//! Canonical data contracts shared by `WoW` Lab's Rust crates and browser boundary.
4//!
5//! ```
6//! use wowlab_types::sim::{SimTime, SpellIdx};
7//!
8//! let spell = SpellIdx::from_raw(17);
9//! let timestamp = SimTime::from_millis(1_500);
10//!
11//! assert_eq!(spell.as_u32(), 17);
12//! assert_eq!(timestamp.as_millis(), 1_500);
13//! ```
14
15pub mod colors;
16#[path = "types/combat/mod.rs"]
17pub mod combat;
18pub mod constants;
19pub mod copy;
20#[path = "types/data/mod.rs"]
21pub mod data;
22#[path = "types/game/mod.rs"]
23pub mod game;
24pub mod numeric;
25pub mod proto;
26#[path = "types/sensitive.rs"]
27pub mod sensitive;
28#[path = "types/sim/mod.rs"]
29pub mod sim;
30#[path = "types/spell_desc.rs"]
31pub mod spell_desc;
32#[path = "types/spell_render.rs"]
33pub mod spell_render;
34pub mod stats;
35pub mod table_registry;
36
37#[cfg(feature = "wasm")]
38pub mod wasm;