aboutsummaryrefslogtreecommitdiff
path: root/internal/world/room.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/world/room.go')
-rw-r--r--internal/world/room.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/internal/world/room.go b/internal/world/room.go
index 08e18a4..8ae2d13 100644
--- a/internal/world/room.go
+++ b/internal/world/room.go
@@ -83,19 +83,6 @@ type ExitDef struct {
AlwaysBlocked bool `yaml:"always_blocked,omitempty"`
}
-func (e *ExitDef) UnmarshalYAML(value *yaml.Node) error {
- if value.Kind == yaml.ScalarNode {
- var n int
- if err := value.Decode(&n); err != nil {
- return err
- }
- e.Room = n
- return nil
- }
- type raw ExitDef
- return value.Decode((*raw)(e))
-}
-
type Room struct {
ID int `yaml:"id"`
Name string `yaml:"name"`
@@ -117,19 +104,6 @@ type RoomMob struct {
WanderInterval float64 `yaml:"wander_interval,omitempty"`
}
-func (rm *RoomMob) UnmarshalYAML(value *yaml.Node) error {
- if value.Kind == yaml.ScalarNode {
- var s string
- if err := value.Decode(&s); err != nil {
- return err
- }
- rm.ID = s
- return nil
- }
- type raw RoomMob
- return value.Decode((*raw)(rm))
-}
-
// RoomObject is either a reference to a file-backed object definition (only
// `id`/wander fields set) or a fully local object definition (Local != nil).
// An entry is treated as local when it carries any passive content field