/// <summary> /// Tells the server that the client wishes to change to the specified team /// </summary> /// <param name="team"></param> public void RequestTeamChange(ServerClientInterface.Team team) { outMsg = client.CreateMessage(); outMsg.Write(ServerClientInterface.CHANGE_TEAM); outMsg.Write(ServerClientInterface.TeamToByte(team)); client.SendMessage(outMsg, NetDeliveryMethod.ReliableSequenced); }
/// <summary> /// Initializes AI and passes through team /// </summary> /// <param name="team"></param> public AI(ServerClientInterface.Team team) { this.currentTeam = team; }