Implements support for registering types and functions in AngelScript externally.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -32,3 +32,14 @@ export uint8_t PkmnLib_AngelScriptResolver_LoadByteCodeFromMemory(AngelScriptRes
|
||||
size_t size) {
|
||||
Try(p->LoadByteCodeFromMemory(memory, size);)
|
||||
}
|
||||
export uint8_t PkmnLib_AngelScriptResolver_RegisterType(AngelScriptResolver* p, const char* typeName) {
|
||||
Try(p->RegisterType(typeName);)
|
||||
}
|
||||
export uint8_t PkmnLib_AngelScriptResolver_RegisterTypeMethod(AngelScriptResolver* p, const char* typeName,
|
||||
const char* decl, void*(func)(void*)) {
|
||||
Try(p->RegisterTypeMethod(typeName, decl, func);)
|
||||
}
|
||||
export uint8_t PkmnLib_AngelScriptResolver_RegisterGlobalMethod(AngelScriptResolver* p, const char* decl,
|
||||
void*(func)(void*)) {
|
||||
Try(p->RegisterGlobalMethod(decl, func);)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user