Sort src/ into subsystem folders (engine, game, level, level/grid, entity with player, npc, boss, familiar, effect, pickup and weapon, ui, ui/menu, lua, online), drop each folder's prefix from file names, include by path from src/, glob src/ recursively
This commit is contained in:
1 parent
9254158eef
commit
7d3cf33c20
706 files changed
+5337
-5336
No files matched your search
@@ -44,7 +44,7 @@ game, written by hand on top of it one function at a time:
|
||||
|
||||
- a function in `src/` defines the method `generated-src/classes.h` declares (Rebirth's names stay, as in
|
||||
`RNG::RandomInt`), with its address first in the comment above it (`// 007e9020 A number below max ...`). The next
|
||||
build stops emitting the generated body. `src/rng.cpp` is the first.
|
||||
build stops emitting the generated body. `src/engine/rng.cpp` is the first.
|
||||
- no raw offsets: a field the code needs gets a name in `db/fields.tsv`, and with it a member in `classes.h`.
|
||||
- constants are `constexpr` with names, read from the exe where they live there (`RNG`'s shift table).
|
||||
|
||||
|
||||
Reference in new issue
Block a user