2019-10-24 09:04:19 +00:00
|
|
|
#ifndef CREATURELIB_LIBRARYSETTINGS_HPP
|
|
|
|
#define CREATURELIB_LIBRARYSETTINGS_HPP
|
|
|
|
|
|
|
|
#include <cstdint>
|
2020-08-19 18:11:00 +00:00
|
|
|
#include "../Defines.hpp"
|
2019-10-24 09:04:19 +00:00
|
|
|
|
|
|
|
namespace CreatureLib::Library {
|
2019-11-28 11:55:22 +00:00
|
|
|
class LibrarySettings {
|
2020-08-19 18:11:00 +00:00
|
|
|
level_int_t _maximalLevel;
|
2020-08-12 15:51:06 +00:00
|
|
|
uint8_t _maximalAttacks;
|
2019-11-28 11:55:22 +00:00
|
|
|
|
2019-10-24 09:04:19 +00:00
|
|
|
public:
|
2020-08-19 18:11:00 +00:00
|
|
|
LibrarySettings(level_int_t maximalLevel, uint8_t maximalAttacks)
|
2020-08-12 15:51:06 +00:00
|
|
|
: _maximalLevel(maximalLevel), _maximalAttacks(maximalAttacks) {}
|
2019-10-24 09:04:19 +00:00
|
|
|
|
2020-08-19 18:11:00 +00:00
|
|
|
inline level_int_t GetMaximalLevel() const noexcept { return _maximalLevel; }
|
2019-10-24 09:04:19 +00:00
|
|
|
|
2020-08-12 15:51:06 +00:00
|
|
|
inline uint8_t GetMaximalAttacks() const noexcept { return _maximalAttacks; }
|
2019-10-24 09:04:19 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-11-28 11:55:22 +00:00
|
|
|
#endif // CREATURELIB_LIBRARYSETTINGS_HPP
|