https://github.com/defold/example-configfile-extension
An example of how to extend the config file with custom properties
https://github.com/defold/example-configfile-extension
Last synced: 5 months ago
JSON representation
An example of how to extend the config file with custom properties
- Host: GitHub
- URL: https://github.com/defold/example-configfile-extension
- Owner: defold
- License: mit
- Created: 2022-11-26T08:58:17.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-28T09:27:03.000Z (about 3 years ago)
- Last Synced: 2025-02-09T15:41:53.259Z (11 months ago)
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# example-configfile-extension
You can access properties at runtime using `sys.get_config_string()`, `sys.get_config_int()` and `sys.get_config_number()`.
The example shows how to implement config file property overrides.
The interface allows you to both override existing properties (from game.project),
but also how to return entirely new properties.