diff options
author | Manoj Srivastava <srivasta@debian.org> | 2020-05-22 20:05:37 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2020-05-22 21:39:31 -0700 |
commit | 035291b7f18974925f9a85a41e057bdc462c75f1 (patch) | |
tree | d69056be1a045aec185393b52dadb6fc2d5f50c9 /src/set_component.hpp | |
parent | 9714b44a37dfc03aa00187726beea7ed8257415e (diff) | |
parent | 4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff) |
Merge branch 'upstream'
Diffstat (limited to 'src/set_component.hpp')
-rw-r--r-- | src/set_component.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/set_component.hpp b/src/set_component.hpp new file mode 100644 index 00000000..18dc4d57 --- /dev/null +++ b/src/set_component.hpp @@ -0,0 +1,16 @@ +#pragma once + +#include "h-basic.h" +#include "object_flag_set.hpp" + +#include <array> +#include <cstdint> + +constexpr std::size_t SET_MAX_SIZE = 6; + +struct set_component { + bool_ present = FALSE; /* Is it being worn? */ + s16b a_idx = 0; /* What artifact? */ + std::array<s16b , SET_MAX_SIZE> pval; /* Pval for each combination */ + std::array<object_flag_set, SET_MAX_SIZE> flags; /* Flags */ +}; |