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

Loading…
Cancel
Save