JaimeGensler / thyseus

An archetypal Entity Component System, built entirely in Typescript
MIT License
74 stars 3 forks source link

[commands] Rewrite commands to use structs, fix commands bugs #25

Closed JaimeGensler closed 1 year ago

JaimeGensler commented 1 year ago

Rewrites commands to internally use structs, which prevents silly bugs like writing a value as a u32 and reading it as a u16 (certainly not that I've ever done that 🤫 ). Also a solid step toward making Commands an API that consumers can hook into - more work to be done on this front in the future.

Resolves https://github.com/JaimeGensler/thyseus/issues/6, https://github.com/JaimeGensler/thyseus/issues/18, & mitigates https://github.com/JaimeGensler/thyseus/issues/22, but more work to be done