OSDN Git Service

[Refactor] #1621 デバッグ用tvalリストを静的配列からvectorに変換した
[hengbandforosx/hengbandosx.git] / src / wizard / tval-descriptions-table.h
index c70a930..76a2d2b 100644 (file)
@@ -1,6 +1,7 @@
 #pragma once
 
 #include "system/angband.h"
+#include <vector>
 
 /*!
  * ベースアイテムの大項目IDの種別名をまとめる構造体 / A structure to hold a tval and its description
@@ -10,8 +11,5 @@ typedef struct tval_desc {
     concptr desc; /*!< 大項目名 */
 } tval_desc;
 
-#define MAX_TVAL_DESCRIPTIONS 52
-#define MAX_DEBUG_COMMAND_SYMBOLS 63
-
-extern tval_desc tvals[MAX_TVAL_DESCRIPTIONS];
-extern const char listsym[MAX_DEBUG_COMMAND_SYMBOLS];
+extern const std::vector<tval_desc> tvals;
+extern const std::vector<char> listsym;