summaryrefslogtreecommitdiff
path: root/pixel-client/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-06-03 20:24:20 +0200
committermetamuffin <metamuffin@disroot.org>2025-06-03 20:24:20 +0200
commitd279baccdbaf37ae4410af1875e98597fe0b5565 (patch)
treee42320d5c0433a6b0415305da0520dc035553cef /pixel-client/src
parentdb4587d3ec64b7e28691b43f9d9701939eed94d1 (diff)
downloadhurrycurry-d279baccdbaf37ae4410af1875e98597fe0b5565.tar
hurrycurry-d279baccdbaf37ae4410af1875e98597fe0b5565.tar.bz2
hurrycurry-d279baccdbaf37ae4410af1875e98597fe0b5565.tar.zst
use multiple ints for characters; close #294
Diffstat (limited to 'pixel-client/src')
-rw-r--r--pixel-client/src/game.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs
index e299cf09..f34920dc 100644
--- a/pixel-client/src/game.rs
+++ b/pixel-client/src/game.rs
@@ -30,7 +30,7 @@ use hurrycurry_client_lib::{network::sync::Network, spatial_index::SpatialIndex,
use hurrycurry_protocol::{
glam::{IVec2, Vec2},
movement::MovementBase,
- Gamedata, Hand, ItemIndex, ItemLocation, Message, MessageTimeout, PacketC, PacketS,
+ Character, Gamedata, Hand, ItemIndex, ItemLocation, Message, MessageTimeout, PacketC, PacketS,
PlayerClass, PlayerID, RecipeIndex, Score, TileIndex,
};
use log::{info, warn};
@@ -70,7 +70,7 @@ pub struct Player {
items: [Option<Item>; 2],
message_persist: Option<(Message, MessageTimeout)>,
_name: String,
- _character: i32,
+ _character: Character,
_class: PlayerClass,
interact_target_anim: Vec2,
interact_target_anim_pressed: f32,
@@ -90,7 +90,7 @@ impl Game {
id: None,
name: config.username.clone(),
class: PlayerClass::Chef,
- character: 0,
+ character: Character::default(),
position: None,
});