ThingTemplate dataclass mirrors MobTemplate pattern. load_thing_template and load_thing_templates parse TOML files from content/things/. spawn_thing creates Thing instances from templates. Includes rock and fountain examples.
3 lines
114 B
TOML
3 lines
114 B
TOML
name = "fountain"
|
|
description = "a weathered stone fountain, water trickling into a mossy basin"
|
|
portable = false
|