Browse Source

hahah how did I put this in the wrong struct

pbs
jake 5 years ago
parent
commit
4df6fa4466
  1. 4
      src/ship/ship.rs

4
src/ship/ship.rs

@ -75,7 +75,6 @@ struct ClientState {
character: Character,
session: Session,
block: u32,
client_location: ClientLocation,
}
impl ClientState {
@ -86,7 +85,6 @@ impl ClientState {
character: Character::default(),
session: Session::new(),
block: 0,
client_location: ClientLocation::new(),
}
}
}
@ -95,6 +93,7 @@ impl ClientState {
pub struct ShipServerState<EG: EntityGateway> {
entity_gateway: EG,
clients: HashMap<ClientId, ClientState>
client_location: ClientLocation,
}
impl<EG: EntityGateway> ShipServerState<EG> {
@ -102,6 +101,7 @@ impl<EG: EntityGateway> ShipServerState<EG> {
ShipServerState {
entity_gateway: entity_gateway,
clients: HashMap::new(),
client_location: ClientLocation::new(),
}
}

Loading…
Cancel
Save