This commit is contained in:
14
CInterface/Library/LearnableMoves.cpp
Normal file
14
CInterface/Library/LearnableMoves.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "../../src/Library/Species/LearnableMoves.hpp"
|
||||
#include "../Core.hpp"
|
||||
using namespace PkmnLib::Library;
|
||||
|
||||
export uint8_t PkmnLib_LearnableMoves_Construct(LearnableMoves*& out, size_t levelAttackCapacity) {
|
||||
Try(out = new LearnableMoves(levelAttackCapacity));
|
||||
}
|
||||
DESTRUCTOR(LearnableMoves)
|
||||
|
||||
export void PkmnLib_LearnableMoves_AddEggMove(LearnableMoves* p, MoveData* move) { p->AddEggMove(move); }
|
||||
export size_t PkmnLib_LearnableMoves_GetEggMovesCount(LearnableMoves* p) { return p->GetEggMoves().Count(); }
|
||||
export const MoveData* const* PkmnLib_LearnableMoves_GetEggMoves(LearnableMoves* p) {
|
||||
return reinterpret_cast<const MoveData* const*>(p->GetEggMoves().RawData());
|
||||
}
|
||||
Reference in New Issue
Block a user