Stephen Gutekanst
|
17db5498ee
|
module: write module events using a struct pattern
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
582a3c07f6
|
module: elevate local/global args type construction
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
8711e5e3a7
|
module: rename MComponentTypes -> ComponentTypesM (consistency with LocalArgsM, etc.)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
e6a170a07a
|
module: remove NamespacedState; module state is literally its struct type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
17c751a2e7
|
module: improve variable naming slightly
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
f55aee4b50
|
module: rename MComponents -> MComponentTypes
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
a83f9d5be8
|
module: rename NamespacedComponents -> ComponentTypesByName
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
2e7cb30bc9
|
module: invert switch case for hypothetically better branch prediction
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
ea14480246
|
module: improve isString, add tests
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
0328598945
|
module: merge ecs/systems.zig -> module.zig
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
e847d46ff9
|
module: begin making Mod unaware of all namespaced components
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
7e0b9dde68
|
module: components are written in the same style as events
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
f50a27b83d
|
module: update tests for sendGlobal changes
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
3661cb8721
|
module: sending global event requires sender module awareness
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
9eac721f24
|
module: make send() local args type known
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
ca05c9f3d9
|
module: expose Module.LocalEvent type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
38e0d576cc
|
module: expose Module.GlobalEvent type
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
15d9efcf26
|
module: *World is no longer an injectable parameter
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
3bfafe102d
|
module: event handlers are defined ahead of time
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
0fc3bf6545
|
module: improve parameter injection, fix tests
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
3898995c4c
|
all: get ECS running on revised module system
All ECS `examples/` now run on the revised module system.
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
cd2f3fbc3f
|
module: test empty/minimal module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
388a1fbfca
|
module: move namespaced state/components to ecs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
e24d09cd62
|
module: event handlers can return inferred error set
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
fcf6be9e6d
|
module: make global event argument types always known
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
135e9b8121
|
module: add GlobalEvent enum
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
e25281cc64
|
module: add event arguments & dependency injection support
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
e4e834e054
|
module: add API variants for global/local events
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
6f23812fa6
|
module: initial runtime event dispatch implementation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
5b6020508c
|
module: runtime local event handler calling
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
18a391f446
|
module: build addressable event handler names, runtime invocation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
c6db530d74
|
module: begin working towards dynamic dispatch
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
5e353e60bb
|
module: improve testing
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|
Stephen Gutekanst
|
56fc29743f
|
move mach.ecs.Module -> mach.Module
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
|
2024-04-06 15:18:38 -07:00 |
|