public void SetStatus(RemotePlayerStatus status) { NetOutgoingMessage msg = CreateMessage(eClientToServerMessage.SetStatus); msg.Write((byte)status); client.SendMessage(msg, NetDeliveryMethod.ReliableOrdered); }
public void SetStatus(RemotePlayer player, RemotePlayerStatus status) { player.Status = status; OnPlayerStatusChanged(player); }
public bool AllPlayerStatusEquals(RemotePlayerStatus status) { foreach(RemotePlayer player in ConnectedPlayers) { if (player.Status != status) return false; } return true; }
public void SetAllStatus(RemotePlayerStatus status) { foreach(RemotePlayer player in ConnectedPlayers) { player.Status = status; OnPlayerStatusChanged(player); } }
public void SetStatus(RemotePlayerStatus status) { client.SetStatus(status); }