Beispiel #1
0
        public void CreateUniqueInstance(ushort buildingID, string newName, string newDescription = "")
        {
            BuildingInfo   oldInfo        = BuildingManager.instance.m_buildings.m_buffer[buildingID].Info;
            UniqueBuilding uniqueBuilding = oldInfo.GetImmediateCopy(newName);

            BuildingInfos.Add(uniqueBuilding);
            BuildingInstances.Add(buildingID, uniqueBuilding);
        }