24#include <angelscript.h>
25#include "../../autowrapper/aswrappedcall.h"
27using namespace AngelScript;
34 VehicleAI::RegisterRefCountingObjectGeneric(engine,
"VehicleAIClass");
35 VehicleAIPtr::RegisterRefCountingObjectPtrGeneric(engine,
"VehicleAIClassPtr",
"VehicleAIClass");
38 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void setActive(bool)",
WRAP_MFN(VehicleAI, setActive), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
39 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"bool isActive()",
WRAP_MFN(VehicleAI, isActive), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
40 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void addWaypoint(const string &in id, const vector3 &in pos)",
WRAP_MFN(VehicleAI, addWaypoint), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
41 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void addWaypoints(dictionary &in d)",
WRAP_MFN(VehicleAI, addWaypoints), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
42 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void addEvent(const string &in id,int ev)",
WRAP_MFN(VehicleAI, addEvent), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
43 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"void setValueAtWaypoint(const string &in id, int value_id, float value)",
WRAP_MFN(VehicleAI, setValueAtWaypoint), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
44 result = engine->RegisterObjectMethod(
"VehicleAIClass",
"vector3 getTranslation(int offset, uint wp)",
WRAP_MFN(VehicleAI, getTranslation), asCALL_GENERIC);
ROR_ASSERT(result >= 0);
#define ROR_ASSERT(_EXPR)
#define WRAP_MFN(ClassType, name)
void RegisterVehicleAiGeneric(AngelScript::asIScriptEngine *engine)