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); }
public GDEBuildingData DeepClone() { GDEBuildingData newClone = ShallowClone(); return(newClone); }