diff options
author | Manoj Srivastava <srivasta@debian.org> | 2020-05-22 19:57:41 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2020-05-22 20:02:19 -0700 |
commit | c3d2579ad8d7eb33059aa8fdbaf5b564411a57f2 (patch) | |
tree | 1570cda0676fdcf4171a69a7fe313c1b89a52b0c /src/store_info_type.hpp | |
parent | 986b7742bf244b4073ecca0723615f70be8a1ab6 (diff) | |
parent | 4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff) |
Merge branch 'upstream' into debian-cmake-fixes
Diffstat (limited to 'src/store_info_type.hpp')
-rw-r--r-- | src/store_info_type.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/store_info_type.hpp b/src/store_info_type.hpp new file mode 100644 index 00000000..78aa071e --- /dev/null +++ b/src/store_info_type.hpp @@ -0,0 +1,31 @@ +#pragma once + +#include "h-basic.h" +#include "store_flag_set.hpp" +#include "store_item.hpp" + +#include <vector> + +/** + * Store descriptor. + */ +struct store_info_type +{ + std::string name; /* Name */ + + std::vector<store_item> items; /* Table -- Legal item kinds */ + + s16b max_obj = 0; /* Number of items this store can hold */ + + std::vector<u16b> owners; /* List of owners; refers to ow_info */ + + std::vector<u16b> actions; /* Actions; refers to ba_info */ + + byte d_attr = 0; /* Default building attribute */ + char d_char = '\0'; /* Default building character */ + + byte x_attr = 0; /* Desired building attribute */ + char x_char = '\0'; /* Desired building character */ + + store_flag_set flags; /* Flags */ +}; |