Replace Contexts with Resources #7

Merged
reo merged 5 commits from 2025-10-15-resources into master 2025-10-19 14:24:22 +00:00

5 commits

Author SHA1 Message Date
reo
5f3da6ab99 Add FPS counter to the debug UI 2025-10-17 23:18:18 +03:00
reo
54967067bd Enable InputState event handler in engine 2025-10-16 17:01:23 +03:00
reo
1a48e58a1c Implement get_many.
I believe the repeated code can be generated with procedural macros, but
I don't need that right now. I'll do it if I ever end up needing this.
Right now I need to start making the game itself more than anything.
2025-10-16 16:12:18 +03:00
reo
b86bbdd237 fix spacing 2025-10-16 16:11:53 +03:00
reo
ef055a1bda Replace contexts with resources
- Implements a new macro to generate code for a new structure: TypeMap
- TypeMaps are wrappers for HashMaps that use TypeIDs as keys.
- Refactor the entire codebase to use the new resource structures.
- This commit is the first step towards getting rid of "god context objects everywhere".
2025-10-15 22:33:04 +03:00