private void ObserveNextTurnImpl(ObserveNextTurnReq req, ObserveNextTurnResp resp) { ObservedGameInfo gi = Server.GameManager.ObserveNextTurn(req.ObserverId, req.GameId, req.Auth.GetClientCode()); resp.GameInfo = new EnObsGameInfo(gi); resp.TurnInfo = (gi.TurnInfo == null) ? null : new EnObsTurnInfo(gi.TurnInfo); }
public EnObsGameInfo(ObservedGameInfo gi) { GameId = gi.GameId; GameState = gi.GameState.ToString(); QueuedTurns = gi.QueuedTurns; SlowPlayers = gi.SlowPlayers; }
private void ObserveNextTurnImpl(ObserveNextTurnReq req, ObserveNextTurnResp resp) { Team team = Server.TeamRegistry.GetTeam(req.Auth.TeamName); ObservedGameInfo gi = Server.GameManager.ObserveNextTurn(req.ObserverId, req.GameId, req.Auth.GetClientCode(), team); resp.GameInfo = new EnObsGameInfo(gi); resp.TurnInfo = (gi.TurnInfo == null) ? null : new EnObsTurnInfo(gi.TurnInfo); }