CreatureLib/CInterface/Battling/BattleStatCalculator.cpp

20 lines
1.1 KiB
C++
Raw Normal View History

#include "../../src/Battling/Library/BattleStatCalculator.hpp"
#include "../Core.hpp"
using namespace CreatureLib::Battling;
2022-04-02 10:33:26 +00:00
export_func const BattleStatCalculator* CreatureLib_BattleStatCalculator_Construct() {
return new BattleStatCalculator();
}
2022-04-02 10:33:26 +00:00
export_func void CreatureLib_BattleStatCalculator_Destruct(const BattleStatCalculator* p) { delete p; }
2022-04-02 10:33:26 +00:00
export_func u8 CreatureLib_BattleStatCalculator_CalculateFlatStat(u32& out, const BattleStatCalculator* p,
Creature* creature,
CreatureLib::Library::Statistic stat) {
Try(out = p->CalculateFlatStat(creature, stat);)
}
2022-04-02 10:33:26 +00:00
export_func u8 CreatureLib_BattleStatCalculator_CalculateBoostedStat(u32& out, const BattleStatCalculator* p,
Creature* creature,
CreatureLib::Library::Statistic stat) {
Try(out = p->CalculateBoostedStat(creature, stat);)
}