2020-03-02 14:23:08 +00:00
|
|
|
#include "../../src/Library/CreatureData/LearnableAttacks.hpp"
|
2020-03-25 18:07:36 +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; }
|
|
|
|
|
|
|
|
export void CreatureLib_LearnableAttacks_AddLevelMove(LearnableAttacks* p, uint8_t level, const AttackData* attack) {
|
|
|
|
p->AddLevelMove(level, attack);
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|