specialized version of OffGridLink for expandable buildings
adjusts cost and distance according to the linear expansion of the building
https://citybuilder.softleitner.com/manual/buildings
|
| override void | Walk (Walker walker, float moved, Vector2Int start) |
| | walker movement is done here while a walker is traversing a link
this can be used to move walkers in atypical ways
for example when moving up ramps or across bridges
|
| |
|
void | Reregister () |
| |
|
|
ExpandableBuilding | ExpandableBuilding |
| |
|
int | MultipliedCost |
| |
|
float | MultipliedDistance |
| |
|
bool | Bidirectional = true |
| |
|
int | Cost = 10 |
| |
|
float | Distance = 2 |
| |
|
Transform | StartTransform |
| |
|
Transform | EndTransform |
| |
|
Transform[] | Path |
| |
|
bool | LinkRoad = true |
| |
|
bool | LinkMapGrid = true |
| |
|
Object | Tag |
| |
|
| override int | getCost () |
| |
| override float | getDistance () |
| |
| override void | Start () |
| |
|
virtual void | Update () |
| |
|
virtual void | OnDestroy () |
| |
|
virtual void | OnDrawGizmosSelected () |
| |
|
virtual void | register () |
| |
|
virtual void | deregister () |
| |
|
virtual void | initialize () |
| |
|
| Vector2Int | StartPoint [get] |
| | start point of the link, if it changes the link has to be reregistered
|
| |
| Vector2Int | EndPoint [get] |
| | end point of the link, if it changes the link has to be reregistered
|
| |
|
Vector3 | StartPosition [get] |
| |
|
Vector3 | EndPosition [get] |
| |
◆ getCost()
| override int CityBuilderCore.ExpandableOffGridLink.getCost |
( |
| ) |
|
|
protectedvirtual |
◆ getDistance()
| override float CityBuilderCore.ExpandableOffGridLink.getDistance |
( |
| ) |
|
|
protectedvirtual |
◆ Start()
| override void CityBuilderCore.ExpandableOffGridLink.Start |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ Walk()
| override void CityBuilderCore.ExpandableOffGridLink.Walk |
( |
Walker | walker, |
|
|
float | moved, |
|
|
Vector2Int | start ) |
|
inlinevirtual |
walker movement is done here while a walker is traversing a link
this can be used to move walkers in atypical ways
for example when moving up ramps or across bridges
- Parameters
-
| walker | the walker moving across the link |
| moved | how much the walker has already moved |
| start | the point the walker started at, relevant in bidirectional links |
Reimplemented from CityBuilderCore.OffGridLink.