Add easy to use macro to generate enum helper functions for parsing, stringifying and iteration.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -2,13 +2,14 @@
|
||||
#define CREATURELIB_GENDER_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include "../Core/Enum.hpp"
|
||||
|
||||
namespace CreatureLib::Library {
|
||||
/*!
|
||||
\brief Might be somewhat controversial nowadays, but as many creature battling games only have two genders, we'll
|
||||
hardcode those.
|
||||
*/
|
||||
enum class Gender : uint8_t { Male, Female, Genderless };
|
||||
ENUM(Gender, uint8_t, Male, Female, Genderless)
|
||||
}
|
||||
|
||||
#endif // CREATURELIB_GENDER_HPP
|
||||
|
||||
Reference in New Issue
Block a user