Exemple #1
0
        public GDEHeroAltarPoolData ShallowClone()
        {
            string newKey = Guid.NewGuid().ToString();
            GDEHeroAltarPoolData newClone = new GDEHeroAltarPoolData(newKey);

            newClone.NotNormalPool = NotNormalPool;
            newClone.Unable        = Unable;
            newClone.AltarTimes    = AltarTimes;
            newClone.PoolCapacity  = PoolCapacity;
            newClone.GetSNum       = GetSNum;
            newClone.lasttime      = lasttime;
            newClone.Name          = Name;
            newClone.ID            = ID;
            newClone.starttime     = starttime;

            newClone.AllHeroes = new List <string>(AllHeroes);
            newClone.Set_AllHeroes();

            return(newClone);
        }
Exemple #2
0
        public GDEHeroAltarPoolData DeepClone()
        {
            GDEHeroAltarPoolData newClone = ShallowClone();

            return(newClone);
        }