Skip to content

Commit dc1e5e8

Browse files
author
DogLooksGood
committed
Remove position from GamePlayer
1 parent 5452210 commit dc1e5e8

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

api/src/types.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,18 @@ impl std::fmt::Display for GameStatus {
232232
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
233233
pub struct GamePlayer {
234234
id: u64,
235-
position: u16,
236235
}
237236

238237
impl GamePlayer {
239-
pub fn new(id: u64, position: u16) -> Self {
238+
pub fn new(id: u64) -> Self {
240239
Self {
241240
id,
242-
position,
243241
}
244242
}
245243

246244
pub fn id(&self) -> u64 {
247245
self.id
248246
}
249-
250-
pub fn position(&self) -> u16 {
251-
self.position
252-
}
253247
}
254248

255249
#[derive(BorshSerialize, BorshDeserialize, Debug, PartialEq, Eq, Clone)]

transactor-components/src/event_loop.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Component<PipelinePorts, EventLoopContext> for EventLoop {
186186
let mut deposits: Vec<GameDeposit> = Vec::with_capacity(new_deposits.len());
187187

188188
for player in new_players.iter() {
189-
players.push(GamePlayer::new(player.access_version, player.position));
189+
players.push(GamePlayer::new(player.access_version));
190190
game_context.add_node(
191191
player.addr.clone(),
192192
player.access_version,

0 commit comments

Comments
 (0)