summaryrefslogtreecommitdiff
path: root/src/town_type.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/town_type.hpp')
-rw-r--r--src/town_type.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/town_type.hpp b/src/town_type.hpp
new file mode 100644
index 00000000..0b903138
--- /dev/null
+++ b/src/town_type.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "h-basic.h"
+#include "seed.hpp"
+#include "store_type_fwd.hpp"
+
+#include <vector>
+
+/**
+ * Town descriptor.
+ */
+struct town_type
+{
+ cptr name = nullptr;
+
+ seed_t seed = seed_t::system(); /* Seed for RNG */
+
+ std::vector<store_type> store; /* The stores [max_st_idx] */
+
+ byte flags = 0; /* Town flags */
+
+ bool_ stocked = FALSE; /* Is the town actualy stocked ? */
+
+ bool_ destroyed = FALSE; /* Is the town destroyed? */
+};