CreatureLib/CInterface/Library/LibrarySettings.cpp

12 lines
488 B
C++
Raw Normal View History

2020-02-29 13:09:03 +00:00
#include "../../src/Library/LibrarySettings.hpp"
#include "../Core.hpp"
using namespace CreatureLib::Library;
2020-02-29 13:09:03 +00:00
export const LibrarySettings* CreatureLib_LibrarySettings_Construct(u8 maximalLevel, u8 maximalMoves) {
return new LibrarySettings(maximalLevel, maximalMoves);
2020-02-29 13:09:03 +00:00
}
export void CreatureLib_LibrarySettings_Destruct(const LibrarySettings* p) { delete p; }
2020-02-29 13:09:03 +00:00
SIMPLE_GET_FUNC(LibrarySettings, GetMaximalLevel, level_int_t);
SIMPLE_GET_FUNC(LibrarySettings, GetMaximalAttacks, u8);