diff options
Diffstat (limited to 'server/game-core/src/lib.rs')
| -rw-r--r-- | server/game-core/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/game-core/src/lib.rs b/server/game-core/src/lib.rs index cc77e570..994398c9 100644 --- a/server/game-core/src/lib.rs +++ b/server/game-core/src/lib.rs @@ -16,9 +16,11 @@ */ pub mod gamedata_index; +pub mod interaction; pub mod network; pub mod spatial_index; +use crate::gamedata_index::GamedataIndex; use hurrycurry_protocol::{ Character, Gamedata, Hand, ItemIndex, ItemLocation, Message, MessageTimeout, PacketC, PlayerClass, PlayerID, RecipeIndex, Score, TileIndex, glam::IVec2, movement::MovementBase, @@ -29,7 +31,6 @@ use std::{ sync::Arc, time::Instant, }; -use crate::gamedata_index::GamedataIndex; #[derive(Debug, Clone, PartialEq)] pub struct Involvement { @@ -78,6 +79,7 @@ pub struct Game { pub players_spatial_index: SpatialIndex<PlayerID>, pub walkable: HashSet<IVec2>, pub tile_index: HashMap<TileIndex, HashSet<IVec2>>, + pub item_locations_index: HashSet<ItemLocation>, pub events: VecDeque<PacketC>, } |