コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <summary>
 /// Initializes AI and passes through team
 /// </summary>
 /// <param name="team"></param>
 public AI(ServerClientInterface.Team team)
 {
     this.currentTeam = team;
 }