2020-02-29 13:09:03 +00:00
|
|
|
#include "../../src/Library/SpeciesLibrary.hpp"
|
2020-07-31 08:51:03 +00:00
|
|
|
#include "../Core.hpp"
|
2020-02-29 13:52:15 +00:00
|
|
|
#include "BaseLibrary.cpp"
|
2020-02-29 16:21:36 +00:00
|
|
|
using namespace CreatureLib::Library;
|
2020-02-29 13:09:03 +00:00
|
|
|
|
2020-02-29 16:21:36 +00:00
|
|
|
export const SpeciesLibrary* CreatureLib_SpeciesLibrary_Construct(size_t initialCapacity = 32) {
|
|
|
|
return new SpeciesLibrary(initialCapacity);
|
2020-02-29 13:09:03 +00:00
|
|
|
};
|
|
|
|
|
2020-02-29 16:21:36 +00:00
|
|
|
export void CreatureLib_SpeciesLibrary_Destruct(const SpeciesLibrary* p) { delete p; }
|
2020-02-29 13:09:03 +00:00
|
|
|
|
2020-08-22 11:24:08 +00:00
|
|
|
BASELIBRARY(CreatureLib_SpeciesLibrary, SpeciesLibrary, CreatureSpecies);
|
|
|
|
|
2022-03-23 12:56:45 +00:00
|
|
|
export const CreatureSpecies* CreatureLib_SpeciesLibrary_GetById(const SpeciesLibrary* p, u16 id) {
|
2020-08-22 11:24:08 +00:00
|
|
|
return p->GetById(id).GetRaw();
|
|
|
|
}
|