From 16ff78180669411326d42ea32d4a9260c018236c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 13 Aug 2024 12:48:31 +0200 Subject: refactor server to use client-lib data model (breaks customers) --- pixel-client/src/game.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pixel-client/src') diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs index 29b1ba30..dca84d77 100644 --- a/pixel-client/src/game.rs +++ b/pixel-client/src/game.rs @@ -29,7 +29,7 @@ use hurrycurry_client_lib::{network::sync::Network, spatial_index::SpatialIndex} use hurrycurry_protocol::{ glam::{IVec2, Vec2}, movement::MovementBase, - ClientGamedata, ItemIndex, ItemLocation, PacketC, PacketS, PlayerID, Score, TileIndex, + Gamedata, ItemIndex, ItemLocation, PacketC, PacketS, PlayerID, Score, TileIndex, }; use log::{info, warn}; use sdl2::{ @@ -41,7 +41,7 @@ use std::collections::{HashMap, HashSet}; pub struct Game { network: Network, - data: ClientGamedata, + data: Gamedata, tiles: HashMap, tilemap: Tilemap, walkable: HashSet, @@ -94,7 +94,7 @@ impl Game { players: HashMap::new(), tilemap: Tilemap::default(), my_id: PlayerID(0), - data: ClientGamedata::default(), + data: Gamedata::default(), walkable: HashSet::new(), movement_send_cooldown: 0., misc_textures: MiscTextures::init(layout), -- cgit v1.2.3-70-g09d2