CreatureLib/CInterface/Library/SpeciesLibrary.cpp

11 lines
522 B
C++

#include "../../src/Library/SpeciesLibrary.hpp"
#include "BaseLibrary.cpp"
#define export extern "C"
export const CreatureLib::Library::SpeciesLibrary* CreatureLib_SpeciesLibrary_Construct(size_t initialCapacity = 32) {
return new CreatureLib::Library::SpeciesLibrary(initialCapacity);
};
export void CreatureLib_SpeciesLibrary_Destruct(const CreatureLib::Library::SpeciesLibrary* p) { delete p; }
BASELIBRARY(CreatureLib_SpeciesLibrary, CreatureLib::Library::SpeciesLibrary, CreatureLib::Library::CreatureSpecies);