summaryrefslogtreecommitdiff
path: root/src/vault_type.hpp
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-22 19:57:41 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-22 20:02:19 -0700
commitc3d2579ad8d7eb33059aa8fdbaf5b564411a57f2 (patch)
tree1570cda0676fdcf4171a69a7fe313c1b89a52b0c /src/vault_type.hpp
parent986b7742bf244b4073ecca0723615f70be8a1ab6 (diff)
parent4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff)
Merge branch 'upstream' into debian-cmake-fixes
Diffstat (limited to 'src/vault_type.hpp')
-rw-r--r--src/vault_type.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/vault_type.hpp b/src/vault_type.hpp
new file mode 100644
index 00000000..9d407d8f
--- /dev/null
+++ b/src/vault_type.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+#include "h-basic.h"
+#include <string>
+
+/**
+ * Vault descriptors.
+ */
+struct vault_type
+{
+ std::string data; /* Vault data */
+
+ byte typ = 0; /* Vault type */
+
+ byte rat = 0; /* Vault rating */
+
+ byte hgt = 0; /* Vault height */
+ byte wid = 0; /* Vault width */
+
+ s16b lvl = 0; /* level of special (if any) */
+ byte dun_type = 0; /* Dungeon type where the level will show up */
+
+ s16b mon[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; /* special monster */
+ int item[3] = { 0, 0, 0 }; /* number of item (usually artifact) */
+};