2020-03-04 16:04:44 +00:00
|
|
|
#include "../../src/Battling/Library/BattleLibrary.hpp"
|
2020-07-31 08:51:03 +00:00
|
|
|
#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) {
|
2020-04-04 11:42:06 +00:00
|
|
|
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
|
|
|
|
2020-07-07 13:33:43 +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*);
|
2021-03-07 18:04:15 +00:00
|
|
|
SMART_GET_FUNC(BattleLibrary, GetScriptResolver, ScriptResolver*);
|