Exemplo n.º 1
0
 private void Broadcast(LobbyState state, DediToClientMessage netMessage)
 {
     _log.Output($"Lobby:[{state.Id}] [{state.DisplayName}]\nPlayers: {state.Players.Count}/{state.MaxPlayers}");
     for (int i = 0; i < state.Players.Count; i++)
     {
         _server.Send(state.Players[i].Id, netMessage);
     }
 }
Exemplo n.º 2
0
 //---- Send
 //---------
 public void Send(DediToClientMessage netMessage)
 {
     SendNetMessage(netMessage);
 }