Added ScriptResolver C Interface.
This commit is contained in:
parent
569a12ec82
commit
da79d51ad2
|
@ -0,0 +1,15 @@
|
|||
#include "../../src/Battling/ScriptHandling/ScriptResolver.hpp"
|
||||
#define export extern "C"
|
||||
using namespace CreatureLib::Battling;
|
||||
|
||||
export ScriptResolver* CreatureLib_ScriptResolver_Construct() { return new ScriptResolver(); }
|
||||
|
||||
export void CreatureLib_ScriptResolver_Destruct(const ScriptResolver* p) { delete p; }
|
||||
|
||||
export void CreatureLib_ScriptResolver_Initialize(ScriptResolver* p, BattleLibrary* library) {
|
||||
p->Initialize(library);
|
||||
};
|
||||
export Script* CreatureLib_ScriptResolver_LoadScript(ScriptResolver* p, ScriptCategory category,
|
||||
const char* scriptName) {
|
||||
return p->LoadScript(category, ConstString(scriptName));
|
||||
};
|
Loading…
Reference in New Issue