2020-03-02 12:59:49 +00:00
|
|
|
#ifndef CREATURELIB_TALENTINDEX_HPP
|
|
|
|
#define CREATURELIB_TALENTINDEX_HPP
|
|
|
|
|
|
|
|
#include <cstdint>
|
2020-03-05 10:25:41 +00:00
|
|
|
namespace CreatureLib::Library {
|
|
|
|
class TalentIndex {
|
|
|
|
bool _secret;
|
|
|
|
uint8_t _index;
|
2020-03-02 12:59:49 +00:00
|
|
|
|
2020-03-05 10:25:41 +00:00
|
|
|
public:
|
2020-06-20 16:50:55 +00:00
|
|
|
inline TalentIndex() noexcept : _secret(false), _index(0){};
|
|
|
|
inline TalentIndex(bool secret, uint8_t index) noexcept : _secret(secret), _index(index) {}
|
|
|
|
constexpr inline bool IsSecret() const noexcept { return _secret; }
|
|
|
|
constexpr inline bool GetIndex() const noexcept { return _index; }
|
2020-03-05 10:25:41 +00:00
|
|
|
};
|
|
|
|
}
|
2020-03-02 12:59:49 +00:00
|
|
|
|
|
|
|
#endif // CREATURELIB_TALENTINDEX_HPP
|