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