hypercross
6cb0626f05
refactor: update produce signature to return undefined
...
Change the return type of `produce` and `produceAsync` from `void` to
`undefined` in `MutableSignal` and `IGameContext` to more accurately
reflect that the mutation functions should not return a value.
2026-04-22 01:13:39 +08:00
hypercross
601eb0f417
refactor: reformat code and introduce IGameContextExport
...
- Reformat `src/core/game.ts` and sample types to use 2-space
indentation
- Add `IGameContextExport` to hide internal test properties
- Update `CombatGameContext` to use the exported context type
2026-04-20 00:00:41 +08:00
hypercross
10393f45b6
refactor: add rng & seeding
2026-04-07 15:32:06 +08:00
hypercross
beb8088009
refactor: api change to add prompt text
2026-04-07 15:03:15 +08:00
hypercross
83658c9898
chore: remove unused api
2026-04-07 11:26:43 +08:00
hypercross
6cfb3b6df8
refactor: PromptDef
2026-04-06 15:54:02 +08:00
hypercross
b3ff589aa5
refactor: api changes
2026-04-06 11:07:11 +08:00
hypercross
c4290841e5
refactor: clean up exports
2026-04-05 10:41:42 +08:00
hypercross
9e2947a8d6
refactor: prompt validation
2026-04-04 21:38:07 +08:00
hypercross
6e1c42015f
refactor: api surface change
2026-04-04 20:50:17 +08:00
hypercross
de7006ef19
refactor: api change
2026-04-04 18:33:44 +08:00
hypercross
25f9992be6
refactor: remove host options
2026-04-04 14:06:27 +08:00
hypercross
ae98e0735a
chore: add GameModule type
2026-04-04 11:06:41 +08:00
hypercross
697d23e932
feat: add game host
2026-04-04 00:55:09 +08:00
hypercross
86714e7837
refactor: entity -> MutableSignal
2026-04-03 14:19:44 +08:00
hypercross
2581a8e0e6
refactor: add src alias to @/
2026-04-02 16:03:44 +08:00
hypercross
e945d28fc3
refactor: even tighter api
2026-04-02 14:46:34 +08:00
hypercross
b2b35c3a99
refactor: reduce api surface
2026-04-02 14:11:35 +08:00
hypercross
e3bc63b088
refactor: make sides/side optional
2026-04-02 13:58:52 +08:00
hypercross
e78caf481d
refactor: use mutative for entity signals
2026-04-02 13:56:44 +08:00
hypercross
74f56b9da4
refactor: state signal
2026-04-02 12:53:49 +08:00
hypercross
004d49c36f
refactor: update api
2026-04-02 12:48:29 +08:00
hypercross
1cb7fa05ec
refactor: rewrite game & tic tac toe
2026-04-02 11:06:29 +08:00
hypercross
d4a8668b54
refactor: remove context. add game.
2026-04-02 10:26:42 +08:00