A tile type used in planet tilemaps
More...
|
| PlanetTile (double height, double moisture, double temperature, Random rand) |
| Initializes a new instance of the T:MidnightBlue.PlanetTile class, generates a biome and specifies collision data based on its biome type. More...
|
|
int | GetTextureID (Biome biome, Random rand) |
| Gets the ID of a biomes texture region for use in a tilemap More...
|
|
Color | GetColor (Biome biome) |
| Gets the color of a tile in the minimap based on its biome. More...
|
|
| Tile (int textureID, Color color) |
| Initializes a new instance of the T:MidnightBlue.Tile class More...
|
|
| Tile () |
| Initializes a new instance of the T:MidnightBlue.Tile class. More...
|
|
A tile type used in planet tilemaps
§ PlanetTile()
MidnightBlue.PlanetTile.PlanetTile |
( |
double |
height, |
|
|
double |
moisture, |
|
|
double |
temperature, |
|
|
Random |
rand |
|
) |
| |
|
inline |
Initializes a new instance of the T:MidnightBlue.PlanetTile class, generates a biome and specifies collision data based on its biome type.
- Parameters
-
height | Height value to use in generation. |
moisture | Moisture value to use in generation. |
temperature | Temperature value to use in generation. |
rand | Random number generator used in biome generation. |
§ GetColor()
Color MidnightBlue.PlanetTile.GetColor |
( |
Biome |
biome | ) |
|
|
inline |
Gets the color of a tile in the minimap based on its biome.
- Returns
- The color.
- Parameters
-
§ GetTextureID()
int MidnightBlue.PlanetTile.GetTextureID |
( |
Biome |
biome, |
|
|
Random |
rand |
|
) |
| |
|
inline |
Gets the ID of a biomes texture region for use in a tilemap
- Returns
- The texture region identifier.
- Parameters
-
biome | Biome to get. |
rand | Random number generator to use for varied region id's. |
§ Biome
Biome MidnightBlue.PlanetTile.Biome |
|
get |
Gets the biome category of the tile.
The biome category.
§ Height
Gets the height category of the tile.
The height category.
§ Moisture
Gets the moisture category of the tile.
The moisture category.
§ Temperature
Gets the temperature category of the tile.
The temperature category.
The documentation for this class was generated from the following file:
- Shared/src/Game/Environment/PlanetTile.cs