2020-03-04 17:11:08 +00:00
|
|
|
#include "../../src/Battling/Library/BattleStatCalculator.hpp"
|
|
|
|
#define export extern "C"
|
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
|
|
|
export const BattleStatCalculator* CreatureLib_BattleStatCalculator_Construct() { return new BattleStatCalculator(); }
|
|
|
|
|
|
|
|
export void CreatureLib_BattleStatCalculator_Destruct(const BattleStatCalculator* p) { delete p; }
|
|
|
|
|
|
|
|
export uint32_t CreatureLib_BattleStatCalculator_CalculateFlatStat(const BattleStatCalculator* p, Creature* creature,
|
2020-03-22 09:11:53 +00:00
|
|
|
CreatureLib::Library::Statistic stat) {
|
2020-03-04 17:11:08 +00:00
|
|
|
return p->CalculateFlatStat(creature, stat);
|
|
|
|
}
|
|
|
|
export uint32_t CreatureLib_BattleStatCalculator_CalculateBoostedStat(const BattleStatCalculator* p, Creature* creature,
|
2020-03-22 09:11:53 +00:00
|
|
|
CreatureLib::Library::Statistic stat) {
|
2020-03-04 17:11:08 +00:00
|
|
|
return p->CalculateBoostedStat(creature, stat);
|
|
|
|
}
|