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

Detailed Description

defines a kind of road that can be placed on the map with a RoadBuilder and an IRoadManager
in THREE that is just a single road that evolves to a fancier version as defined in RoadStage
the urban demo has multiple roads with seperate road networks(MultiRoadManager)

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

Inheritance diagram for CityBuilderCore.Road:
CityBuilderCore.KeyedObject CityBuilderCore.IKeyed

Public Member Functions

RoadStage GetStage (Vector2Int point, ILayerManager layerManager=null)
 checks which stage of the road fulfills all layer requirements at the given point
 
TileBase GetTile (Vector2Int point, ILayerManager layerManager=null)
 
int GetIndex (Vector2Int point, ILayerManager layerManager=null)
 

Public Attributes

string Name
 
RoadStage[] Stages
 
ItemQuantity[] Cost
 
StructureLevelMask Level
 
bool IsDestructible = true
 
bool IsMovable = true
 
- 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

Member Function Documentation

◆ GetStage()

RoadStage CityBuilderCore.Road.GetStage ( Vector2Int point,
ILayerManager layerManager = null )
inline

checks which stage of the road fulfills all layer requirements at the given point

Parameters
pointthe point on the map to check for the requirements
Returns