Пример #1
0
        public GDEBuildingData ShallowClone()
        {
            string          newKey   = Guid.NewGuid().ToString();
            GDEBuildingData newClone = new GDEBuildingData(newKey);

            newClone.spawnCount = spawnCount;
            newClone.weight     = weight;
            newClone.typeName   = typeName;
            newClone.nickName   = nickName;
            newClone.spawnLevel = spawnLevel;
            newClone.shapePath  = shapePath;

            return(newClone);
        }
Пример #2
0
        public GDEBuildingData DeepClone()
        {
            GDEBuildingData newClone = ShallowClone();

            return(newClone);
        }