CreatureLib/CInterface/Battling/BattleLibrary.cpp

22 lines
1.3 KiB
C++
Raw Normal View History

2020-03-04 16:04:44 +00:00
#include "../../src/Battling/Library/BattleLibrary.hpp"
#include "../Core.hpp"
2020-03-04 16:04:44 +00:00
using namespace CreatureLib::Battling;
2022-04-02 10:33:26 +00:00
export_func u8 CreatureLib_BattleLibrary_Construct(const BattleLibrary*& out,
const CreatureLib::Library::DataLibrary* staticLib,
BattleStatCalculator* statCalculator, DamageLibrary* damageLibrary,
ExperienceLibrary* experienceLibrary, ScriptResolver* scriptResolver,
MiscLibrary* miscLibrary) {
Try(out = new BattleLibrary(staticLib, statCalculator, damageLibrary, experienceLibrary, scriptResolver,
miscLibrary);)
2020-03-04 16:04:44 +00:00
}
2022-04-02 10:33:26 +00:00
export_func void CreatureLib_BattleLibrary_Destruct(const BattleLibrary* p) { delete p; }
2020-03-04 16:04:44 +00:00
SMART_GET_FUNC(BattleLibrary, GetStaticLib, const CreatureLib::Library::DataLibrary*);
SMART_GET_FUNC(BattleLibrary, GetStatCalculator, const BattleStatCalculator*);
SMART_GET_FUNC(BattleLibrary, GetDamageLibrary, const DamageLibrary*);
SMART_GET_FUNC(BattleLibrary, GetMiscLibrary, const MiscLibrary*);
SMART_GET_FUNC(BattleLibrary, GetExperienceLibrary, const ExperienceLibrary*);
SMART_GET_FUNC(BattleLibrary, GetScriptResolver, ScriptResolver*);