A common base for all ITerrain types.
More...
A common base for all ITerrain types.
◆ LoadHeightMap() [1/2]
void AlphaFramework.World.Terrains.ITerrain.LoadHeightMap |
( |
Stream |
stream | ) |
|
◆ LoadHeightMap() [2/2]
void AlphaFramework.World.Terrains.ITerrain.LoadHeightMap |
( |
string |
path | ) |
|
◆ LoadOcclusionIntervalMap() [1/2]
void AlphaFramework.World.Terrains.ITerrain.LoadOcclusionIntervalMap |
( |
Stream |
stream | ) |
|
◆ LoadOcclusionIntervalMap() [2/2]
void AlphaFramework.World.Terrains.ITerrain.LoadOcclusionIntervalMap |
( |
string |
path | ) |
|
◆ LoadTextureMap() [1/2]
void AlphaFramework.World.Terrains.ITerrain.LoadTextureMap |
( |
Stream |
stream | ) |
|
◆ LoadTextureMap() [2/2]
void AlphaFramework.World.Terrains.ITerrain.LoadTextureMap |
( |
string |
path | ) |
|
◆ MarkUntraversableSlopes()
void AlphaFramework.World.Terrains.ITerrain.MarkUntraversableSlopes |
( |
bool |
obstructionMap[,], |
|
|
int |
maxTraversableSlope |
|
) |
| |
Marks untraversable slopes in a pathfinding "obstruction map".
- Parameters
-
obstructionMap | The existing pathfinding "obstruction map" to mark the untraversable slopes in. |
maxTraversableSlope | The maximum slope to considers traversable. |
Implemented in AlphaFramework.World.Terrains.Terrain< TTemplate >.
◆ Center
Vector2 AlphaFramework.World.Terrains.ITerrain.Center |
|
get |
The world coordinates of the center of the terrain.
◆ DataLoaded
bool AlphaFramework.World.Terrains.ITerrain.DataLoaded |
|
get |
◆ HeightMap
ByteGrid AlphaFramework.World.Terrains.ITerrain.HeightMap |
|
getset |
Direct access to the internal height-map array. Handle with care; clone when necessary!
- Exceptions
-
InvalidOperationException | The height-map size is incorrect. |
Is not serialized/stored, is loaded by LoadHeightMap(Stream).
◆ OcclusionIntervalMap
ByteVector4Grid AlphaFramework.World.Terrains.ITerrain.OcclusionIntervalMap |
|
getset |
Direct access to the internal occlusion interval map array. Handle with care; clone when necessary!
- Exceptions
-
InvalidOperationException | The size is incorrect. |
Is not serialized/stored, is loaded by LoadOcclusionIntervalMap(System.IO.Stream).
◆ OcclusionIntervalMapOutdated
bool AlphaFramework.World.Terrains.ITerrain.OcclusionIntervalMapOutdated |
|
getset |
◆ Size
TerrainSize AlphaFramework.World.Terrains.ITerrain.Size |
|
getset |
◆ TextureMap
NibbleGrid AlphaFramework.World.Terrains.ITerrain.TextureMap |
|
getset |
Direct access to the internal height-map array. Handle with care; clone when necessary!
- Exceptions
-
InvalidOperationException | The height-map size is incorrect. |
Is not serialized/stored, is loaded by LoadTextureMap(string).
The documentation for this interface was generated from the following file:
- World/Terrains/ITerrain.cs