diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-23 21:27:25 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-25 11:21:48 +0200 |
commit | 74fb8de441c68fff92680a48352f6b9b0f6e9271 (patch) | |
tree | 88e59c1043ac5de7379986eadc7f574e27f6c085 /server/src/game.rs | |
parent | 149c58d54bf9c0eda6e3d978984e5e0365b7395d (diff) | |
download | hurrycurry-74fb8de441c68fff92680a48352f6b9b0f6e9271.tar hurrycurry-74fb8de441c68fff92680a48352f6b9b0f6e9271.tar.bz2 hurrycurry-74fb8de441c68fff92680a48352f6b9b0f6e9271.tar.zst |
add player portals
Diffstat (limited to 'server/src/game.rs')
-rw-r--r-- | server/src/game.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/game.rs b/server/src/game.rs index 1692de34..d649d87e 100644 --- a/server/src/game.rs +++ b/server/src/game.rs @@ -60,7 +60,7 @@ pub struct Player { pub item: Option<Item>, pub communicate_persist: Option<Message>, - movement: MovementBase, + pub movement: MovementBase, pub direction: Vec2, pub boost: bool, pub last_position_update: Instant, @@ -71,7 +71,7 @@ pub struct Game { pub tiles: HashMap<IVec2, Tile>, pub walkable: HashSet<IVec2>, pub players: HashMap<PlayerID, Player>, - players_spatial_index: SpatialIndex<PlayerID>, + pub players_spatial_index: SpatialIndex<PlayerID>, entities: Arc<RwLock<Vec<Entity>>>, end: Option<Instant>, pub lobby: bool, |