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

Detailed Description

tile that can be used for connections in hex grids with irregular sizes
check out CityBuilderCore.Tests/Other/HexRoad for examples

https://citybuilder.softleitner.com/manual

Inheritance diagram for CityBuilderCore.ConnectedHexagonTile:
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

Sprite Sprite_None
 
Sprite[] Sprites_One = new Sprite[2]
 
Sprite[] Sprites_Two = new Sprite[6]
 
Sprite[] Sprites_Three = new Sprite[6]
 
Sprite[] Sprites_Four = new Sprite[6]
 
Sprite[] Sprites_Five = new Sprite[2]
 
Sprite Sprite_Six
 
- Public Attributes inherited from CityBuilderCore.ConnectedTileBase
bool IsColored
 
Color Color
 
TileBase[] ConnectedTiles
 

Protected Member Functions

override byte getMask (Vector3Int location, ITilemap tilemap)
 
override Quaternion getRotation (byte mask)
 
override Vector3 getScale (byte mask)
 
override Sprite getSprite (byte mask)
 
- 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 bool hasConnection (ITilemap tilemap, Vector3Int position)
 

Member Function Documentation

◆ getMask()

override byte CityBuilderCore.ConnectedHexagonTile.getMask ( Vector3Int location,
ITilemap tilemap )
inlineprotectedvirtual

Reimplemented from CityBuilderCore.ConnectedTileBase.