2020-04-29 17:46:24 +00:00
|
|
|
#include "../../src/Battling/Library/BattleLibrary.hpp"
|
|
|
|
#include "../Core.hpp"
|
|
|
|
using namespace PkmnLib::Battling;
|
|
|
|
|
|
|
|
export uint8_t PkmnLib_BattleLibrary_Construct(BattleLibrary*& out, PkmnLib::Library::PokemonLibrary* staticLib,
|
|
|
|
StatCalculator* statCalculator, DamageLibrary* damageLibrary,
|
2020-05-20 14:05:52 +00:00
|
|
|
ExperienceLibrary* experienceLibrary,
|
2020-04-29 17:46:24 +00:00
|
|
|
CreatureLib::Battling::ScriptResolver* scriptResolver,
|
2020-05-20 14:05:52 +00:00
|
|
|
MiscLibrary* miscLibrary) {
|
2020-04-29 17:46:24 +00:00
|
|
|
Try(out = new BattleLibrary(staticLib, statCalculator, damageLibrary, experienceLibrary, scriptResolver,
|
|
|
|
miscLibrary));
|
|
|
|
}
|
|
|
|
|
|
|
|
export void PkmnLib_BattleLibrary_Destruct(BattleLibrary* p) { delete p; }
|