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

Detailed Description

special info for buildings that can have variable sizes
for example bridges in THREE, fields and storage areas in TOWN demo

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

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

Public Member Functions

virtual bool CheckExpansionLimits (Vector2Int expansion)
 
virtual bool CheckExpandedRequirements (Vector2Int point, Vector2Int expansion, BuildingRotation rotation)
 
virtual bool CheckExpandedBuildingRequirements (Vector2Int point, Vector2Int expansion, BuildingRotation rotation)
 
virtual bool CheckExpandedRoadRequirements (Vector2Int point, Vector2Int expansion, BuildingRotation rotation)
 
virtual void PrepareExpanded (Vector2Int point, Vector2Int expansion, BuildingRotation rotation)
 
override IBuilding Create (DefaultBuildingManager.BuildingMetaData metaData, Transform parent)
 
- Public Member Functions inherited from CityBuilderCore.BuildingInfo
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)
 

Public Attributes

Vector2Int ExpansionMinimum
 
Vector2Int ExpansionMaximum
 
ItemQuantity[] ExpansionCost
 
Vector2Int SizePost
 
- Public Attributes inherited from CityBuilderCore.BuildingInfo
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
 

Properties

bool IsArea [get]
 
- Properties inherited from CityBuilderCore.IKeyed

Additional Inherited Members

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

Member Function Documentation

◆ Create()

override IBuilding CityBuilderCore.ExpandableBuildingInfo.Create ( DefaultBuildingManager.BuildingMetaData metaData,
Transform parent )
inlinevirtual

Reimplemented from CityBuilderCore.BuildingInfo.