aboutsummaryrefslogtreecommitdiff
path: root/internal/world
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-27 17:26:23 -0400
committerhistoria <[not public]>2026-06-27 17:26:23 -0400
commit83f8f5447ec3baf85314ce7343f0e339d28bcc15 (patch)
treebf01d0da4eb7b72e0fd410a74fc0ed6d2bc42232 /internal/world
parent988b006a5bb9edb6465653566e7bdf8175347b8c (diff)
downloadthehouseoficarus-83f8f5447ec3baf85314ce7343f0e339d28bcc15.tar.gz
refactor: removed some redundant new map code
Diffstat (limited to 'internal/world')
-rw-r--r--internal/world/room.go44
1 files changed, 22 insertions, 22 deletions
diff --git a/internal/world/room.go b/internal/world/room.go
index d542bf4..8f13b82 100644
--- a/internal/world/room.go
+++ b/internal/world/room.go
@@ -66,15 +66,15 @@ func (e *ExitDef) UnmarshalYAML(value *yaml.Node) error {
}
type Room struct {
- ID int `yaml:"id"`
- Name string `yaml:"name"`
- Color string `yaml:"color"`
- Description behavior.DescList `yaml:"description"`
- Exits map[ExitDir]ExitDef `yaml:"exits"`
- Objects []RoomObject `yaml:"objects"`
- ItemSpawns []SpawnDef `yaml:"item_spawns"`
- Mobs []RoomMob `yaml:"mobs"`
- OnEnter []EnterStep `yaml:"on_enter"`
+ ID int `yaml:"id"`
+ Name string `yaml:"name"`
+ Color string `yaml:"color"`
+ Description behavior.DescList `yaml:"description"`
+ Exits map[ExitDir]ExitDef `yaml:"exits"`
+ Objects []RoomObject `yaml:"objects"`
+ ItemSpawns []SpawnDef `yaml:"item_spawns"`
+ Mobs []RoomMob `yaml:"mobs"`
+ OnEnter []EnterStep `yaml:"on_enter"`
Hazard string `yaml:"hazard"`
BlockTransport bool `yaml:"block_transport"`
Triggers []TriggerDef `yaml:"triggers"`
@@ -100,19 +100,19 @@ func (rm *RoomMob) UnmarshalYAML(value *yaml.Node) error {
}
type EnterStep struct {
- Message string `yaml:"message"`
- Condition *behavior.Condition `yaml:"condition"`
- Delay int `yaml:"delay"`
- SetFlags map[string]any `yaml:"set_flags"`
- SetPlayerFlags map[string]any `yaml:"set_player_flags"`
- Broadcast string `yaml:"broadcast"`
- BroadcastGlobal string `yaml:"broadcast_global"`
- SpawnMob *SpawnMobConfig `yaml:"spawn_mob"`
- DespawnMob string `yaml:"despawn_mob"`
- GiveItem string `yaml:"give_item"`
- TakeItem string `yaml:"take_item"`
- Teleport int `yaml:"teleport"`
- Heal int `yaml:"heal"`
+ Message string `yaml:"message"`
+ Condition *behavior.Condition `yaml:"condition"`
+ Delay int `yaml:"delay"`
+ SetFlags map[string]any `yaml:"set_flags"`
+ SetPlayerFlags map[string]any `yaml:"set_player_flags"`
+ Broadcast string `yaml:"broadcast"`
+ BroadcastGlobal string `yaml:"broadcast_global"`
+ SpawnMob *SpawnMobConfig `yaml:"spawn_mob"`
+ DespawnMob string `yaml:"despawn_mob"`
+ GiveItem string `yaml:"give_item"`
+ TakeItem string `yaml:"take_item"`
+ Teleport int `yaml:"teleport"`
+ Heal int `yaml:"heal"`
}
// IsTimed reports whether the step carries enter-sequence semantics (any