Changeset View
Changeset View
Standalone View
Standalone View
source/simulation2/components/ICmpTerrain.cpp
Show All 13 Lines | |||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "ICmpTerrain.h" | #include "ICmpTerrain.h" | ||||
#include "scriptinterface/FunctionWrapper.h" | |||||
#include "scriptinterface/ScriptInterface.h" | |||||
#include "simulation2/system/InterfaceScripted.h" | #include "simulation2/system/InterfaceScripted.h" | ||||
BEGIN_INTERFACE_WRAPPER(Terrain) | BEGIN_INTERFACE_WRAPPER(Terrain) | ||||
DEFINE_INTERFACE_METHOD_CONST_2("GetGroundLevel", entity_pos_t, ICmpTerrain, GetGroundLevel, entity_pos_t, entity_pos_t) | DEFINE_INTERFACE_METHOD("GetGroundLevel", ICmpTerrain, GetGroundLevel) | ||||
DEFINE_INTERFACE_METHOD_CONST_2("CalcNormal", CFixedVector3D, ICmpTerrain, CalcNormal, entity_pos_t, entity_pos_t) | DEFINE_INTERFACE_METHOD("CalcNormal", ICmpTerrain, CalcNormal) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetTilesPerSide", u16, ICmpTerrain, GetTilesPerSide) | DEFINE_INTERFACE_METHOD("GetTilesPerSide", ICmpTerrain, GetTilesPerSide) | ||||
DEFINE_INTERFACE_METHOD_CONST_0("GetMapSize", u32, ICmpTerrain, GetMapSize) | DEFINE_INTERFACE_METHOD("GetMapSize", ICmpTerrain, GetMapSize) | ||||
END_INTERFACE_WRAPPER(Terrain) | END_INTERFACE_WRAPPER(Terrain) |
Wildfire Games · Phabricator