28 #include <angelscript.h>
30 using namespace AngelScript;
34 Terrain::RegisterRefCountingObject(engine,
"TerrainClass");
35 TerrainPtr::RegisterRefCountingObjectPtr(engine,
"TerrainClassPtr",
"TerrainClass");
40 result = engine->RegisterObjectMethod(
"TerrainClass",
"string getTerrainName()", asMETHOD(
RoR::Terrain,getTerrainName), asCALL_THISCALL);
ROR_ASSERT(result>=0);
41 result = engine->RegisterObjectMethod(
"TerrainClass",
"string getTerrainFileName()", asMETHOD(
RoR::Terrain, getTerrainFileName), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
42 result = engine->RegisterObjectMethod(
"TerrainClass",
"string getTerrainFileResourceGroup()", asMETHOD(
RoR::Terrain, getTerrainFileResourceGroup), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
43 result = engine->RegisterObjectMethod(
"TerrainClass",
"string getGUID()", asMETHOD(
RoR::Terrain,getGUID), asCALL_THISCALL);
ROR_ASSERT(result>=0);
44 result = engine->RegisterObjectMethod(
"TerrainClass",
"int getVersion()", asMETHOD(
RoR::Terrain,getVersion), asCALL_THISCALL);
ROR_ASSERT(result>=0);
47 result = engine->RegisterObjectMethod(
"TerrainClass",
"bool isFlat()", asMETHOD(
RoR::Terrain,isFlat), asCALL_THISCALL);
ROR_ASSERT(result>=0);
48 result = engine->RegisterObjectMethod(
"TerrainClass",
"float getHeightAt(float x, float z)", asMETHOD(
RoR::Terrain,GetHeightAt), asCALL_THISCALL);
ROR_ASSERT(result>=0);
51 result = engine->RegisterObjectMethod(
"TerrainClass",
"vector3 getSpawnPos()", asMETHOD(
RoR::Terrain,getSpawnPos), asCALL_THISCALL);
ROR_ASSERT(result>=0);
52 result = engine->RegisterObjectMethod(
"TerrainClass",
"void addSurveyMapEntity(const string &in type, const string &in filename, const string &in resource_group, const string &in caption, const vector3 &in pos, float angle, int id)", asMETHOD(
RoR::Terrain, addSurveyMapEntity), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
53 result = engine->RegisterObjectMethod(
"TerrainClass",
"void delSurveyMapEntities(int id)", asMETHOD(
RoR::Terrain, delSurveyMapEntities), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
56 result = engine->RegisterObjectMethod(
"TerrainClass",
"ProceduralManagerClassPtr @getProceduralManager()", asMETHOD(
RoR::Terrain, getProceduralManager), asCALL_THISCALL);
ROR_ASSERT(result >= 0);