2020-03-04 16:04:44 +00:00
|
|
|
#include "../../src/Battling/Library/BattleLibrary.hpp"
|
2020-03-25 18:07:36 +00:00
|
|
|
#include "../Core.hpp"
|
2020-03-04 16:04:44 +00:00
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
|
|
|
export const BattleLibrary* CreatureLib_BattleLibrary_Construct(const CreatureLib::Library::DataLibrary* staticLib,
|
|
|
|
BattleStatCalculator* statCalculator,
|
|
|
|
DamageLibrary* damageLibrary,
|
|
|
|
ExperienceLibrary* experienceLibrary,
|
|
|
|
ScriptResolver* scriptResolver,
|
|
|
|
MiscLibrary* miscLibrary) {
|
2020-03-26 21:46:14 +00:00
|
|
|
return nullptr;
|
|
|
|
// return new BattleLibrary(staticLib, statCalculator, damageLibrary, experienceLibrary, scriptResolver,
|
|
|
|
// miscLibrary);
|
2020-03-04 16:04:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export void CreatureLib_BattleLibrary_Destruct(const BattleLibrary* p) { delete p; }
|
|
|
|
|
|
|
|
#define SIMPLE_GET_FUNC(type, name, returnType) \
|
|
|
|
export returnType CreatureLib_##type##_##name(const type* p) { return p->name(); }
|
|
|
|
|
|
|
|
SIMPLE_GET_FUNC(BattleLibrary, GetStaticLib, const CreatureLib::Library::DataLibrary*);
|
2020-03-26 21:46:14 +00:00
|
|
|
// SIMPLE_GET_FUNC(BattleLibrary, GetStatCalculator, const BattleStatCalculator*);
|
|
|
|
// SIMPLE_GET_FUNC(BattleLibrary, GetDamageLibrary, const DamageLibrary*);
|
|
|
|
// SIMPLE_GET_FUNC(BattleLibrary, GetMiscLibrary, const MiscLibrary*);
|
|
|
|
// SIMPLE_GET_FUNC(BattleLibrary, GetExperienceLibrary, const ExperienceLibrary*);
|
2020-03-04 16:04:44 +00:00
|
|
|
|
|
|
|
#undef SIMPLE_GET_FUNC
|