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.
4 lines
108 B
TOML
4 lines
108 B
TOML
name = "rock"
|
|
description = "a smooth grey rock, worn by wind and rain"
|
|
portable = true
|
|
aliases = ["stone"]
|