16 lines
680 B
C++
16 lines
680 B
C++
#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));
|
|
};
|