yog-config 0.1.0

Yog mod configuration — TOML-style key/value config files.
Documentation
  • Coverage
  • 89.47%
    17 out of 19 items documented0 out of 18 items with examples
  • Size
  • Source code size: 6.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 318.74 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • F000NKKK

Mod configuration — typed key/value config files under <game_dir>/yog-config/.

File format: key = value pairs, one per line. Lines starting with # are comments. Whitespace around keys and values is stripped.

# mymod configuration
max_players = 20
welcome_message = Hello World!
pvp_enabled = true
damage_multiplier = 1.5

Obtain a game dir from srv.game_dir() inside an event handler.