cvars
cvars copied to clipboard
Configuration variables and consoles for games in Rust. An alternative to inline_tweak / const-tweaker with different tradeoffs.
When RecWars console works sanely or RustCycles supports WASM, add a heading "Try it out" right before usage that explains how to open the console and which cvars to try...
Switch to a hashmap or trie for storing the strings, the generated match is huge: `cargo llvm-lines`: ``` Lines Copies Function name ----- ------ ------------- 119771 (100%) 4182 (100%) (TOTAL)...
Aliases would allow users to save typing and one cvar could have multiple names for users coming from different engines used to different names.
- Built-in - help, cvarlist, search/find/apropos, cmdlist ... - User-defined - just call a hook function and that returns true if handled? Would be nice to be a bit more...
- `cvars_structs! {}` to allow defining whole structs that contain each other - Useful for configuring multiple weapons/vehicles/items/etc that have the same fields - rec-wars does it manually atm.
- [ ] Tab - autocompletion if unambiguous, print possibilities if ambiguous - [ ] Write text, up arrow -> search history only for items starting with the text -...
Seems to do something very similar, compare features and compile times