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;
|
|
|
|
|
2020-04-04 11:42:06 +00:00
|
|
|
export uint8_t 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
|
|
|
}
|
|
|
|
|
|
|
|
export void CreatureLib_BattleLibrary_Destruct(const BattleLibrary* p) { delete p; }
|
|
|
|
|
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*);
|