Ejemplo n.º 1
0
 public ClientGameStateMessage(int id, Vector3 position, Vector3 forwardDirection, Vector3 velocity, Boolean frozen, int gameId)
 {
     this.id         = id;
     this.gameId     = gameId;
     playerPosition  = new Vector3Serialisable(position);
     playerDirection = new Vector3Serialisable(forwardDirection);
     playerVelocity  = new Vector3Serialisable(velocity);
     this.frozen     = frozen;
 }
 public ServerToClientStartMessage(int gameId, int hidingPlace, Vector3Serialisable playerPosition)
 {
     this.gameId         = gameId;
     this.hidingPlace    = hidingPlace;
     this.playerPosition = playerPosition;
 }