2020-03-04 17:11:08 +00:00
|
|
|
#include "../../src/Battling/Library/BattleStatCalculator.hpp"
|
2020-07-31 08:51:03 +00:00
|
|
|
#include "../Core.hpp"
|
2020-03-04 17:11:08 +00:00
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
|
|
|
export const BattleStatCalculator* CreatureLib_BattleStatCalculator_Construct() { return new BattleStatCalculator(); }
|
|
|
|
|
|
|
|
export void CreatureLib_BattleStatCalculator_Destruct(const BattleStatCalculator* p) { delete p; }
|
|
|
|
|
2022-03-23 13:19:07 +00:00
|
|
|
export u8 CreatureLib_BattleStatCalculator_CalculateFlatStat(u32& out, const BattleStatCalculator* p,
|
|
|
|
Creature* creature, CreatureLib::Library::Statistic stat) {
|
2020-03-25 18:07:36 +00:00
|
|
|
Try(out = p->CalculateFlatStat(creature, stat);)
|
2020-03-04 17:11:08 +00:00
|
|
|
}
|
2022-03-23 13:19:07 +00:00
|
|
|
export u8 CreatureLib_BattleStatCalculator_CalculateBoostedStat(u32& out, const BattleStatCalculator* p,
|
|
|
|
Creature* creature,
|
|
|
|
CreatureLib::Library::Statistic stat) {
|
2020-03-25 18:07:36 +00:00
|
|
|
Try(out = p->CalculateBoostedStat(creature, stat);)
|
2020-03-04 17:11:08 +00:00
|
|
|
}
|