示例#1
0
        public GDEPlayerData ShallowClone()
        {
            string        newKey   = Guid.NewGuid().ToString();
            GDEPlayerData newClone = new GDEPlayerData(newKey);

            newClone.maxPassSection      = maxPassSection;
            newClone.lastPassSection     = lastPassSection;
            newClone.maxDurgeonPassLevel = maxDurgeonPassLevel;
            newClone.coin         = coin;
            newClone.addGoldPerc  = addGoldPerc;
            newClone.allBufPerc   = allBufPerc;
            newClone.newBestLevel = newBestLevel;
            newClone.dimension    = dimension;
            newClone.damond       = damond;
            newClone.sickBedNum   = sickBedNum;
            newClone.honorPoint   = honorPoint;
            newClone.JianCai      = JianCai;

            newClone.achievementData = achievementData;

            newClone.temple_fighter = new List <int>(temple_fighter);
            newClone.Set_temple_fighter();
            newClone.temple_ranger = new List <int>(temple_ranger);
            newClone.Set_temple_ranger();
            newClone.temple_priest = new List <int>(temple_priest);
            newClone.Set_temple_priest();
            newClone.temple_caster = new List <int>(temple_caster);
            newClone.Set_temple_caster();
            newClone.bossKeys = new List <int>(bossKeys);
            newClone.Set_bossKeys();
            newClone.bossKeyUsed = new List <int>(bossKeyUsed);
            newClone.Set_bossKeyUsed();

            newClone.herosOwned = new List <GDEHeroData>(herosOwned);
            newClone.Set_herosOwned();
            newClone.heroesTeam = new List <GDEunitTeamData>(heroesTeam);
            newClone.Set_heroesTeam();
            newClone.consumables = new List <GDEItemData>(consumables);
            newClone.Set_consumables();
            newClone.equipsOwned = new List <GDEEquipmentData>(equipsOwned);
            newClone.Set_equipsOwned();
            newClone.propsTeam = new List <GDEItemData>(propsTeam);
            newClone.Set_propsTeam();
            newClone.TimeTaskList = new List <GDEtimeTaskData>(TimeTaskList);
            newClone.Set_TimeTaskList();
            newClone.goddessOwned = new List <GDEgoddessData>(goddessOwned);
            newClone.Set_goddessOwned();
            newClone.buildingsOwned = new List <GDEtownBuildingData>(buildingsOwned);
            newClone.Set_buildingsOwned();
            newClone.ItemsOwned = new List <GDEItemData>(ItemsOwned);
            newClone.Set_ItemsOwned();
            newClone.NPCList = new List <GDENPCData>(NPCList);
            newClone.Set_NPCList();
            newClone.RunesOwned = new List <GDERuneData>(RunesOwned);
            newClone.Set_RunesOwned();
            newClone.AltarPoolList = new List <GDEHeroAltarPoolData>(AltarPoolList);
            newClone.Set_AltarPoolList();
            newClone.finishSectionsList = new List <GDESectionData>(finishSectionsList);
            newClone.Set_finishSectionsList();

            return(newClone);
        }