Exemple #1
0
 //Command that is executed only if server sent it - avoids duplication of commands
 public static void SendServerCommand(GameCommand command)
 {
     if (IsServer)
     {
         CurrentPlayer.CmdSendCommand(command.ToString());
     }
 }
Exemple #2
0
 public static void SyncDecks(PlayerNo playerNo, int seed)
 {
     if (IsServer)
     {
         CurrentPlayer.CmdSendCommand
         (
             DamageDecks.GenerateDeckShuffleCommand(playerNo, seed).ToString()
         );
     }
 }