Esempio n. 1
0
        public void Stamp(TaskStack taskStack)
        {
            //Playables = taskStack.Playables?.Select(p => Game.IdEntityDic[p.Id]).ToList();
            Playables = new List <IPlayable>();
            //CardIds = new List<string>();
            Flag    = taskStack.Flag;
            Numbers = new int[5];
            Array.Copy(taskStack.Numbers, Numbers, 5);

            if (taskStack.Controller != null)
            {
                Controller = Game.ControllerById(taskStack.Controller.Id);
            }
            if (taskStack.Source != null)
            {
                Source = Game.IdEntityDic[taskStack.Source.Id];
            }
            if (taskStack.Target != null)
            {
                Target = Game.IdEntityDic[taskStack.Target.Id];
            }
        }