示例#1
0
        private void SendToClient(BattleCommand command, string askAccountID = null)
        {
            Battle.Step           = command;
            Battle.LibraryCardNum = CardLibrary.Count;
            string battleStr = JsonSerialize.SerializeToString(Battle);
            Battle newBattle = (Battle)JsonSerialize.DeserializeFromString(battleStr, typeof(Battle));

            Record.Add(newBattle);
            Countdown.SetCommand(command);
            ToCleintCommand.SendToClient(command, Battle, askAccountID);
        }