コード例 #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);
        }
コード例 #2
0
        public GDEHeroAltarPoolData DeepClone()
        {
            GDEHeroAltarPoolData newClone = ShallowClone();

            return(newClone);
        }