CreatureLib/CInterface/Library/ItemLibrary.cpp

11 lines
487 B
C++
Raw Normal View History

#include "../../src/Library/ItemLibrary.hpp"
#include "BaseLibrary.cpp"
#define export extern "C"
export const CreatureLib::Library::ItemLibrary* CreatureLib_ItemLibrary_Construct(size_t initialCapacity = 32) {
return new CreatureLib::Library::ItemLibrary(initialCapacity);
};
export void CreatureLib_ItemLibrary_Destruct(const CreatureLib::Library::ItemLibrary* p) { delete p; }
BASELIBRARY(CreatureLib_ItemLibrary, CreatureLib::Library::ItemLibrary, CreatureLib::Library::Item);