Handles instances of Mercator::AdjustTerrainMod with arbitrary shapes. More...
#include <TerrainMod_impl.h>
Public Member Functions | |
InnerTerrainModAdjust_impl () | |
Ctor. | |
virtual | ~InnerTerrainModAdjust_impl () |
Dtor. | |
bool | createInstance (const Atlas::Message::Element &shapeElement, const WFMath::Point< 3 > &pos, const WFMath::Quaternion &orientation, float height) |
Tries to create a new instance from the passes in atlas data. | |
virtual Mercator::TerrainMod * | getModifier () |
Protected Attributes | |
Mercator::AdjustTerrainMod < Shape > * | mTerrainMod |
The actual terrain mod instance, owned by this instance. |
Handles instances of Mercator::AdjustTerrainMod with arbitrary shapes.
bool Eris::InnerTerrainModAdjust_impl< Shape >::createInstance | ( | const Atlas::Message::Element & | shapeElement, | |
const WFMath::Point< 3 > & | pos, | |||
const WFMath::Quaternion & | orientation, | |||
float | height | |||
) | [inline] |
Tries to create a new instance from the passes in atlas data.
shapeElement | The atlas data containing shape information. | |
pos | The position where the mod should be created, in world space. | |
height | The height where the level should be created. |
References Eris::InnerTerrainModAdjust_impl< Shape >::mTerrainMod.
Mercator::TerrainMod * Eris::InnerTerrainModAdjust_impl< Shape >::getModifier | ( | ) | [inline, virtual] |
Gets the modifier which this instance represents.
Implements Eris::InnerTerrainMod_impl.
References Eris::InnerTerrainModAdjust_impl< Shape >::mTerrainMod.