#include "_load.hpp" namespace atlas::script::module::test { void Test::test() { std::cout << "test" << std::endl; } Test* testFactory() { return new Test(); } void load(const engine::Engine* engine) { auto* asEngine = engine->getAsEngine(); asEngine->RegisterObjectType("Test", 0, asOBJ_REF); asEngine->RegisterObjectBehaviour("Test", asBEHAVE_FACTORY, "Test@ f()", asFUNCTION(testFactory), asCALL_CDECL); asEngine->RegisterObjectBehaviour("Test", asBEHAVE_ADDREF, "void f()", asMETHOD(Test, asAddReference), asCALL_THISCALL); asEngine->RegisterObjectBehaviour("Test", asBEHAVE_RELEASE, "void f()", asMETHOD(Test, asRelease), asCALL_THISCALL); asEngine->RegisterObjectMethod("Test", "void test()", asMETHOD(Test, test), asCALL_THISCALL); } }