Extension points
English · Português (BR)
Most content is data. This page maps each kind of content to the file that defines it, the page that documents it and whether a Rust change is needed. Add new content here first, in code only when the data cannot express it.
| Content | Where it lives | Documented in | Rust change |
|---|---|---|---|
| Native fighter | assets/chars/<id>.json, listed in assets/chars/index.json | UMF character, Make a character | No |
| Fighter bios and nationality | assets/char_profiles.json | Characters | No |
| M.U.G.E.N fighter or stage | mugen/chars/, mugen/stages/ or the marketplace | Adding M.U.G.E.N content, Marketplace | No |
| Built-in stage from data | assets/stages/data/<id>/stage.def and its files, embedded by build.rs | Make a stage | No |
| Stage look (rim light, tint, vignette) | assets/stagelook.toml | Visual effects | No |
| Stage props | assets/stageprops.toml and assets/props/ | Visual effects | No |
| Story objects (crates, pickups, bonus rounds) | assets/story/objects.toml | Stage objects | No |
| Story epilogues | assets/story/epilogues.json | Story mode | No |
| Arcade routes and unlocks | assets/routes/unlocks.toml | Route files | No |
| Post-processing | assets/postfx.toml | Visual effects | No |
| Passives, signature meters | fields of a UMF fighter | Passives | No |
| State controller or trigger | crates/engine | Customizing the engine, CNS scripts | Yes |
| New file format | crates/formats | Architecture | Yes |
| New screen | src/app/<screen>.rs | File layout | Yes |
Rules for a new kind of content
- Define it as a data file under
assets/, embedded throughbuild.rswhen it ships with the game. - Give it a wiki page with an English and a
pt-BRversion, and add a row to the table above. - Add a test that loads the shipped files, so a broken data file fails CI instead of the game.
- Record the choice in an ADR when it introduces a new format.