2020-03-04 17:50:16 +00:00
|
|
|
#include "../../src/Battling/Library/DamageLibrary.hpp"
|
|
|
|
#define export extern "C"
|
|
|
|
using namespace CreatureLib::Battling;
|
|
|
|
|
|
|
|
export const DamageLibrary* CreatureLib_DamageLibrary_Construct() { return new DamageLibrary(); }
|
|
|
|
|
|
|
|
export void CreatureLib_DamageLibrary_Destruct(const DamageLibrary* p) { delete p; }
|
|
|
|
|
2020-03-04 17:53:32 +00:00
|
|
|
export uint32_t CreatureLib_DamageLibrary_GetDamage(const DamageLibrary* p, ExecutingAttack* attack, Creature* target,
|
|
|
|
uint8_t hitIndex) {
|
2020-03-04 17:50:16 +00:00
|
|
|
return p->GetDamage(attack, target, hitIndex);
|
|
|
|
}
|
|
|
|
|
2020-03-04 17:53:32 +00:00
|
|
|
export uint8_t CreatureLib_DamageLibrary_GetBasePower(const DamageLibrary* p, ExecutingAttack* attack, Creature* target,
|
|
|
|
uint8_t hitIndex) {
|
2020-03-04 17:50:16 +00:00
|
|
|
return p->GetBasePower(attack, target, hitIndex);
|
|
|
|
}
|
2020-03-04 17:53:32 +00:00
|
|
|
export float CreatureLib_DamageLibrary_GetStatModifier(const DamageLibrary* p, ExecutingAttack* attack,
|
|
|
|
Creature* target, uint8_t hitIndex) {
|
2020-03-04 17:50:16 +00:00
|
|
|
return p->GetStatModifier(attack, target, hitIndex);
|
|
|
|
}
|
2020-03-04 17:53:32 +00:00
|
|
|
export float CreatureLib_DamageLibrary_GetDamageModifier(const DamageLibrary* p, ExecutingAttack* attack,
|
|
|
|
Creature* target, uint8_t hitIndex) {
|
2020-03-04 17:50:16 +00:00
|
|
|
return p->GetDamageModifier(attack, target, hitIndex);
|
|
|
|
}
|