Skip to main content

Crate wowlab_types

Crate wowlab_types 

Source
Expand description

Canonical data contracts shared by WoW Lab’s Rust crates and browser boundary.

use wowlab_types::sim::{SimTime, SpellIdx};

let spell = SpellIdx::from_raw(17);
let timestamp = SimTime::from_millis(1_500);

assert_eq!(spell.as_u32(), 17);
assert_eq!(timestamp.as_millis(), 1_500);

Modules§

colors
combat
constants
Shared numeric constants used across the workspace.
copy
Postgres COPY ... FROM STDIN text-format serialization.
data
game
numeric
Explicit numeric operations and conversions shared across crate boundaries.
proto
Protobuf-generated types for binary result encoding.
sensitive
sim
spell_desc
spell_render
stats
Statistics: streaming (Welford) and batch algorithms.
table_registry
Canonical game-data table identities and exposure metadata.
wasm

Macros§

wasm_error
Define a WASM error enum with Display, From<Self> for JsValue, and From<serde_wasm_bindgen::Error>.