コード例 #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>
 /// Sets the state of the player given the byte
 /// </summary>
 /// <param name="state"></param>
 public void SetState(byte state)
 {
     State = ServerClientInterface.ByteToState(state);
 }
コード例 #3
0
 /// <summary>
 /// Sets the team of the player
 /// </summary>
 /// <param name="team"></param>
 public void SetTeam(byte team)
 {
     CurrentTeam = ServerClientInterface.ByteToTeam(team);
 }