@@ -64,11 +64,9 @@ var PlannerTypeCave = PlannerType{
6464package dungeon
6565
6666type DungeonDefinition struct {
67- ID string
6867 Name string
6968 Description string
7069 TotalFloors int // 総階層数
71- MinLevel int // 解放条件
7270 EnemyTableName string // 敵テーブル
7371 ItemTableName string // アイテムテーブル
7472 PlannerPool []PlannerWeight // 使用するステージ種類
@@ -77,11 +75,6 @@ type DungeonDefinition struct {
7775type PlannerWeight struct {
7876 PlannerType mapplanner.PlannerType
7977 Weight int
80- Config PlannerConfig // Planner固有の設定
81- }
82-
83- type PlannerConfig struct {
84- WallType WallType // 壁種類
8578}
8679```
8780
@@ -93,7 +86,6 @@ type PlannerConfig struct {
9386
9487``` go
9588var DungeonForest = DungeonDefinition {
96- ID : " forest" ,
9789 Name : " 迷いの森" ,
9890 Description : " 木々が生い茂る危険な森" ,
9991 TotalFloors : 10 ,
@@ -104,29 +96,19 @@ var DungeonForest = DungeonDefinition{
10496 {
10597 PlannerType: PlannerTypeForest,
10698 Weight: 5 ,
107- Config: PlannerConfig{
108- WallType: WallTypeTree,
109- },
11099 },
111100 {
112101 PlannerType: PlannerTypeSmallRoom,
113102 Weight: 2 ,
114- Config: PlannerConfig{
115- WallType: WallTypeTree, // 森ダンジョンでも木の壁
116- },
117103 },
118104 {
119105 PlannerType: PlannerTypeBigRoom,
120106 Weight: 1 ,
121- Config: PlannerConfig{
122- WallType: WallTypeTree,
123- },
124107 },
125108 },
126109}
127110
128111var DungeonCave = DungeonDefinition {
129- ID : " cave" ,
130112 Name : " 暗い洞窟" ,
131113 Description : " 光の届かない深い洞窟" ,
132114 TotalFloors : 15 ,
@@ -137,29 +119,19 @@ var DungeonCave = DungeonDefinition{
137119 {
138120 PlannerType: PlannerTypeCave,
139121 Weight: 6 ,
140- Config: PlannerConfig{
141- WallType: WallTypeRock,
142- },
143122 },
144123 {
145124 PlannerType: PlannerTypeSmallRoom,
146125 Weight: 1 ,
147- Config: PlannerConfig{
148- WallType: WallTypeRock,
149- },
150126 },
151127 {
152128 PlannerType: PlannerTypeBigRoom,
153129 Weight: 2 ,
154- Config: PlannerConfig{
155- WallType: WallTypeRock,
156- },
157130 },
158131 },
159132}
160133
161134var DungeonRuins = DungeonDefinition {
162- ID : " ruins" ,
163135 Name : " 古代遺跡" ,
164136 Description : " かつて栄えた文明の跡" ,
165137 TotalFloors : 20 ,
@@ -170,23 +142,14 @@ var DungeonRuins = DungeonDefinition{
170142 {
171143 PlannerType: PlannerTypeSmallRoom,
172144 Weight: 4 ,
173- Config: PlannerConfig{
174- WallType: WallTypeBrick,
175- },
176145 },
177146 {
178147 PlannerType: PlannerTypeRuins,
179148 Weight: 3 ,
180- Config: PlannerConfig{
181- WallType: WallTypeStone,
182- },
183149 },
184150 {
185151 PlannerType: PlannerTypeBigRoom,
186152 Weight: 2 ,
187- Config: PlannerConfig{
188- WallType: WallTypeBrick,
189- },
190153 },
191154 },
192155}
@@ -260,20 +223,8 @@ internal/states/
260223└─────────────────────────────────┘
261224```
262225
263- ### 7. データ保存
264-
265- ``` go
266- // セーブデータに含める
267- type DungeonProgress struct {
268- DungeonID string // 現在挑戦中のダンジョン
269- CurrentFloor int // 現在階層
270- Seed uint64 // マップ生成シード(再現性のため)
271- }
272- ```
273-
274226### 8. 今後の拡張案
275227
276- - FloorConfig追加(階層ごとに壁/敵テーブルを変えたい場合)
277228- ダンジョン固有のギミック(毒沼、溶岩など)
278229- ランダムイベント(宝箱部屋、商人など)
279230- 難易度選択
0 commit comments