2020-02-29 13:09:03 +00:00
|
|
|
#include "../../src/Library/DataLibrary.hpp"
|
2020-07-31 08:51:03 +00:00
|
|
|
#include "../Core.hpp"
|
2020-02-29 16:21:36 +00:00
|
|
|
using namespace CreatureLib::Library;
|
2020-02-29 13:09:03 +00:00
|
|
|
|
2020-03-25 18:07:36 +00:00
|
|
|
export uint8_t CreatureLib_DataLibrary_Construct(const DataLibrary*& out, LibrarySettings* settings,
|
|
|
|
SpeciesLibrary* species, AttackLibrary* attacks, ItemLibrary* items,
|
|
|
|
GrowthRateLibrary* growthRates, TypeLibrary* typeLibrary) {
|
2020-04-04 11:37:06 +00:00
|
|
|
Try(out = new DataLibrary(settings, species, attacks, items, growthRates, typeLibrary);)
|
2020-02-29 13:09:03 +00:00
|
|
|
}
|
|
|
|
|
2020-02-29 16:21:36 +00:00
|
|
|
export void CreatureLib_DataLibrary_Destruct(const DataLibrary* p) { delete p; }
|
2020-02-29 13:09:03 +00:00
|
|
|
|
2020-07-07 13:33:43 +00:00
|
|
|
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*);
|