Loading...
Searching...
No Matches
CityBuilderUrban.PowerTile Class Reference

Detailed Description

tile for the power lines in the urban demo
shows different sprites for 0 / \ X

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

Inheritance diagram for CityBuilderUrban.PowerTile:
CityBuilderCore.ConnectedTileBase

Public Member Functions

override Sprite GetPreviewSprite ()
 
- Public Member Functions inherited from CityBuilderCore.ConnectedTileBase
override bool StartUp (Vector3Int position, ITilemap tilemap, GameObject go)
 
override void RefreshTile (Vector3Int location, ITilemap tilemap)
 
override void GetTileData (Vector3Int location, ITilemap tilemap, ref TileData tileData)
 
Sprite GetPreviewSprite ()
 

Public Attributes

Connection Connection
 
Sprite[] Sprites = new Sprite[4]
 
- Public Attributes inherited from CityBuilderCore.ConnectedTileBase
bool IsColored
 
Color Color
 
TileBase[] ConnectedTiles
 

Protected Member Functions

override Quaternion getRotation (byte mask)
 
override Vector3 getScale (byte mask)
 
override Sprite getSprite (byte mask)
 
override bool hasConnection (ITilemap tilemap, Vector3Int point)
 
- Protected Member Functions inherited from CityBuilderCore.ConnectedTileBase
Sprite getSprite (byte mask)
 
virtual GameObject getPrefab (byte mask)
 
Quaternion getRotation (byte mask)
 
Vector3 getScale (byte mask)
 
virtual void refreshNeighbours (Vector3Int location, ITilemap tilemap)
 
virtual byte getMask (Vector3Int location, ITilemap tilemap)
 

Member Function Documentation

◆ hasConnection()

override bool CityBuilderUrban.PowerTile.hasConnection ( ITilemap tilemap,
Vector3Int point )
inlineprotectedvirtual

Reimplemented from CityBuilderCore.ConnectedTileBase.