2020-02-29 13:09:03 +00:00
|
|
|
#include "../../src/Library/LibrarySettings.hpp"
|
2020-03-25 18:07:36 +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-02-29 16:21:36 +00:00
|
|
|
export const LibrarySettings* CreatureLib_LibrarySettings_Construct(uint8_t maximalLevel, uint8_t maximalMoves) {
|
|
|
|
return new LibrarySettings(maximalLevel, maximalMoves);
|
2020-02-29 13:09:03 +00:00
|
|
|
}
|
|
|
|
|
2020-02-29 16:21:36 +00:00
|
|
|
export void CreatureLib_LibrarySettings_Destruct(const LibrarySettings* p) { delete p; }
|
2020-02-29 13:09:03 +00:00
|
|
|
|
|
|
|
#define SIMPLE_GET_FUNC(type, name, returnType) \
|
|
|
|
export returnType CreatureLib_##type##_##name(const CreatureLib::Library::type* p) { return p->name(); }
|
|
|
|
|
|
|
|
SIMPLE_GET_FUNC(LibrarySettings, GetMaximalLevel, uint8_t);
|
|
|
|
SIMPLE_GET_FUNC(LibrarySettings, GetMaximalMoves, uint8_t);
|
|
|
|
|
|
|
|
#undef SIMPLE_GET_FUNC
|