//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()); } }
public static void SyncDecks(PlayerNo playerNo, int seed) { if (IsServer) { CurrentPlayer.CmdSendCommand ( DamageDecks.GenerateDeckShuffleCommand(playerNo, seed).ToString() ); } }