18 lines
1019 B
C++
18 lines
1019 B
C++
#include "../../src/Library/DataLibrary.hpp"
|
|
#include "../Core.hpp"
|
|
using namespace CreatureLib::Library;
|
|
|
|
export uint8_t CreatureLib_DataLibrary_Construct(const DataLibrary*& out, LibrarySettings* settings,
|
|
SpeciesLibrary* species, AttackLibrary* attacks, ItemLibrary* items,
|
|
GrowthRateLibrary* growthRates, TypeLibrary* typeLibrary) {
|
|
Try(out = new DataLibrary(settings, species, attacks, items, growthRates, typeLibrary);)
|
|
}
|
|
|
|
export void CreatureLib_DataLibrary_Destruct(const DataLibrary* p) { delete p; }
|
|
|
|
SMART_GET_FUNC(DataLibrary, GetSettings, const LibrarySettings*);
|
|
SMART_GET_FUNC(DataLibrary, GetSpeciesLibrary, const SpeciesLibrary*);
|
|
SMART_GET_FUNC(DataLibrary, GetAttackLibrary, const AttackLibrary*);
|
|
SMART_GET_FUNC(DataLibrary, GetItemLibrary, const ItemLibrary*);
|
|
SMART_GET_FUNC(DataLibrary, GetGrowthRates, const GrowthRateLibrary*);
|
|
SMART_GET_FUNC(DataLibrary, GetTypeLibrary, const TypeLibrary*); |