Closed reececomo closed 3 months ago
For production use-cases it would be great to optionally allow all datatypes (booleans, strings, custom structs). With the current architecture we could do some funky type inference to get there for objects.
Here's an example System from Blizzard's Overwatch (source):
Or heck, even just an any
type which uses standard arrays. That way we can easily extend the library for strings and other things as needed (trading some performance on access or serialization). https://github.com/NateTheGreatt/bitECS/issues/47
What is the current happy path for a player input component, where the input is a mixture of keypresses and/or analog inputs?
e.g. in something like this: