CreatureLib/CInterface/Library/SpeciesLibrary.cpp

16 lines
601 B
C++
Raw Normal View History

2020-02-29 13:09:03 +00:00
#include "../../src/Library/SpeciesLibrary.hpp"
#include "../Core.hpp"
#include "BaseLibrary.cpp"
using namespace CreatureLib::Library;
2020-02-29 13:09:03 +00:00
2022-04-02 10:33:26 +00:00
export_func const SpeciesLibrary* CreatureLib_SpeciesLibrary_Construct(size_t initialCapacity = 32) {
return new SpeciesLibrary(initialCapacity);
2020-02-29 13:09:03 +00:00
};
2022-04-02 10:33:26 +00:00
export_func void CreatureLib_SpeciesLibrary_Destruct(const SpeciesLibrary* p) { delete p; }
2020-02-29 13:09:03 +00:00
BASELIBRARY(CreatureLib_SpeciesLibrary, SpeciesLibrary, CreatureSpecies);
2022-04-02 10:33:26 +00:00
export_func const CreatureSpecies* CreatureLib_SpeciesLibrary_GetById(const SpeciesLibrary* p, u16 id) {
return p->GetById(id).GetRaw();
}