2020-03-02 14:23:08 +00:00
|
|
|
#include "../../src/Library/CreatureData/LearnableAttacks.hpp"
|
2020-07-31 08:51:03 +00:00
|
|
|
#include "../Core.hpp"
|
2020-03-02 14:23:08 +00:00
|
|
|
using namespace CreatureLib::Library;
|
|
|
|
|
2020-03-25 18:07:36 +00:00
|
|
|
export uint8_t CreatureLib_LearnableAttacks_Construct(LearnableAttacks*& out, size_t levelAttackCapacity) {
|
|
|
|
Try(out = new LearnableAttacks(levelAttackCapacity);)
|
2020-03-02 14:23:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export void CreatureLib_LearnableAttacks_Destruct(LearnableAttacks* p) { delete p; }
|
|
|
|
|
2020-04-19 17:15:50 +00:00
|
|
|
export void CreatureLib_LearnableAttacks_AddLevelAttack(LearnableAttacks* p, uint8_t level, const AttackData* attack) {
|
|
|
|
p->AddLevelAttack(level, attack);
|
2020-03-02 14:23:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const AttackData* const* CreatureLib_LearnableAttacks_GetAttacksForLevel(LearnableAttacks* p, uint8_t level) {
|
2020-03-22 18:21:40 +00:00
|
|
|
return p->GetAttacksForLevel(level).RawData();
|
2020-03-02 14:23:08 +00:00
|
|
|
}
|
|
|
|
export size_t CreatureLib_LearnableAttacks_GetAttacksForLevelCount(LearnableAttacks* p, uint8_t level) {
|
2020-03-22 18:21:40 +00:00
|
|
|
return p->GetAttacksForLevel(level).Count();
|
2020-03-02 14:23:08 +00:00
|
|
|
}
|