24 #include <angelscript.h>
26 using namespace AngelScript;
33 result = engine->RegisterEnum(
"aiEvents");
ROR_ASSERT(result >= 0);
39 result = engine->RegisterEnum(
"AiValues");
ROR_ASSERT(result >= 0);
40 result = engine->RegisterEnumValue(
"AiValues",
"AI_SPEED",
AI_SPEED);
ROR_ASSERT(result >= 0);
41 result = engine->RegisterEnumValue(
"AiValues",
"AI_POWER",
AI_POWER);
ROR_ASSERT(result >= 0);
44 VehicleAI::RegisterRefCountingObject(engine,
"VehicleAIClass");
45 VehicleAIPtr::RegisterRefCountingObjectPtr(engine,
"VehicleAIClassPtr",
"VehicleAIClass");
48 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void setActive(bool)", asMETHOD(VehicleAI, setActive), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
49 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"bool isActive()", asMETHOD(VehicleAI, isActive), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
50 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void addWaypoint(const string &in id, const vector3 &in pos)", asMETHOD(VehicleAI, addWaypoint), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
51 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void addWaypoints(dictionary &in d)", asMETHOD(VehicleAI, addWaypoints), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
52 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void addEvent(const string &in id,int ev)", asMETHOD(VehicleAI, addEvent), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
53 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void setValueAtWaypoint(const string &in id, int value_id, float value)", asMETHOD(VehicleAI, setValueAtWaypoint), asCALL_THISCALL);
ROR_ASSERT(result >= 0);
54 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"vector3 getTranslation(int offset, uint wp)", AngelScript::asMETHOD(VehicleAI, getTranslation), asCALL_THISCALL);
ROR_ASSERT(result >= 0);