summaryrefslogtreecommitdiff
path: root/src/store_info_type.hpp
blob: 9d0ba55f60728abbec77394c30b83ace77b499d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#include "h-basic.h"
#include "store_flag_set.hpp"
#include "store_item.hpp"

#include <vector>

/**
 * Store descriptor.
 */
struct store_info_type
{
	const char *name = nullptr;              /* Name */

	std::vector<store_item> items;           /* Table -- Legal item kinds */

	s16b max_obj = 0;                        /* Number of items this store can hold */

	u16b owners[4] = { 0 };                  /* List of owners(refers to ow_info) */

	u16b actions[6] = { 0 };                 /* 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 */
};