14 lines
688 B
C++
14 lines
688 B
C++
|
#include "../../src/Battling/Library/ExperienceLibrary.hpp"
|
||
|
#define export extern "C"
|
||
|
using namespace CreatureLib::Battling;
|
||
|
|
||
|
export const ExperienceLibrary* CreatureLib_ExperienceLibrary_Construct() { return new ExperienceLibrary(); }
|
||
|
|
||
|
export void CreatureLib_ExperienceLibrary_Destruct(const ExperienceLibrary* p) { delete p; }
|
||
|
|
||
|
export void CreatureLib_ExperienceLibrary_HandleExperienceGain(const ExperienceLibrary* p, Creature* faintedMon,
|
||
|
Creature* opponents[], size_t opponentsCount) {
|
||
|
auto set = std::unordered_set<Creature*>(opponents, opponents + opponentsCount);
|
||
|
p->HandleExperienceGain(faintedMon, set);
|
||
|
}
|