Commit b753ee4
committed
Port Tier 1-2 GameDevJs example systems to engine
Extract and promote generic utilities and systems from GameDevJs2026 example
into main engine under pg namespace:
- Deduplicate setEntityVisibility → pg::setEntityVisibility (UI/utils.h)
- Promote XorShift32 → pg::LocalRng (Maths/randomnumbergenerator.h)
- Move GridAtlas → pg::GridAtlasLoader (Loaders/)
- Promote WorldFacts/FactChecker → Systems/factsystem.h/.cpp
- Move AutoSaveSystem → Systems/autosavesystem.h
- Move CameraSystem → 2D/camerasystem.h/.cpp, decoupled from grid.h
(initial center now a constructor param) and InventoryUISystem
(zoom suppression now a callback)
Update CMakeLists.txt source lists. Fix stale CameraSystem forward
declarations in placementoverlaysystem.h, spotlightoverlaysystem.h,
tileinspectorsystem.h, tutorialsystem.h that caused name collisions.1 parent 7a5b21b commit b753ee4
4 files changed
Lines changed: 8 additions & 4 deletions
File tree
- examples/GameDevJs2026
- Systems
- UI
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments