this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Adding a spot to load system packs as bytes to be retrieved from later

+9 -2
+9 -2
src/lib.rs
··· 24 24 pub struct Game { 25 25 hooks: Hooks, 26 26 actors: HashMap<Uuid, Actor>, 27 - items: HashMap<Uuid, Item> 27 + items: HashMap<Uuid, Item>, 28 + packs: HashMap<String, Vec<u8>> 28 29 } 29 30 30 31 #[wasm_bindgen] 31 32 impl Game { 32 33 fn new() -> Self { 34 + let packs = HashMap::new(); 35 + 36 + // need to write code to load each system's packs 37 + // might want to embed the binary potentially 38 + 33 39 Self { 34 40 hooks: Hooks::new(), 35 41 actors: HashMap::new(), 36 - items: HashMap::new() 42 + items: HashMap::new(), 43 + packs 37 44 } 38 45 } 39 46