Loading...
Searching...
No Matches
CityBuilderCore.BuildingInfo Class Reference

Detailed Description

meta info for data that does not change between instances of a building
can be used to compare buildings(is that building a silo?)

https://citybuilder.softleitner.com/manual/buildings

Inheritance diagram for CityBuilderCore.BuildingInfo:
CityBuilderCore.KeyedObject CityBuilderCore.IKeyed CityBuilderCore.ExpandableBuildingInfo

Public Member Functions

Building GetPrefab (int index)
 
int GetPrefabIndex (MonoBehaviour prefab)
 
GameObject GetGhost (int index)
 
virtual bool CheckRequirements (Vector2Int point, BuildingRotation rotation)
 
virtual bool CheckBuildingRequirements (Vector2Int point, BuildingRotation rotation)
 
virtual bool CheckRoadRequirements (Vector2Int point, BuildingRotation rotation)
 
virtual bool CheckAvailability (Vector2Int point)
 
virtual void Prepare (Vector2Int point, BuildingRotation rotation)
 
virtual IBuilding Create (DefaultBuildingManager.BuildingMetaData metaData, Transform parent)
 

Public Attributes

string Name
 
string Description
 
Vector2Int Size
 
bool IsDestructible = true
 
bool IsMovable = true
 
bool IsWalkable = false
 
Building Prefab
 
Building[] PrefabAlternatives
 
GameObject Ghost
 
GameObject[] GhostAlternatives
 
BuildingAccessType AccessType
 
Vector2Int AccessPoint
 
ItemQuantity[] Cost
 
BuildingRequirement[] BuildingRequirements
 
RoadRequirement[] RoadRequirements
 
StructureLevelMask Level
 
- Public Attributes inherited from CityBuilderCore.KeyedObject
string Key
 

Additional Inherited Members

- Static Public Member Functions inherited from CityBuilderCore.KeyedObject
static T GetKeyedObject< T > (string key)
 
- Properties inherited from CityBuilderCore.IKeyed