Initialize dwarf locations in YAML, not C.
[open-adventure.git] / templates / dungeon.h.tpl
index ab3d6d7eeb43760c39728331e2cee0f00c1be5f8..2a26917296c3692a7bb2e3585e3d03578d268b6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-SPDX-FileCopyrightText: Eric S. Raymond <esr@thyrsus.com>
+SPDX-FileCopyrightText: Copyright Eric S. Raymond <esr@thyrsus.com>
 SPDX-License-Identifier: BSD-2-Clause
 */
 #ifndef DUNGEON_H
@@ -35,6 +35,10 @@ SPDX-License-Identifier: BSD-2-Clause
 #define COND_HOGRE     20      /* Trying to deal with ogre */
 #define COND_HJADE     21      /* Found all treasures except jade */
 
+/* Count of dwarf starting locations */
+#define NDWARFLOCS {ndwarflocs}
+extern const int dwarflocs[NDWARFLOCS];
+
 typedef struct {{
   const char** strs;
   const int n;