Join Nostr
2026-03-16 13:13:02 UTC
in reply to

Liblast on Nostr: Attributes are defined in `_init_state(state) -> state` method of Entity. They are ...

Attributes are defined in `_init_state(state) -> state` method of Entity. They are identified by sequential indicies, but have 3-letter names for debug and a linked member variable. Example: `state.add_attribute('pos', 'global_position', Entity.Attribute.Type.VECTOR3)`.
This way from a single world_state any game situation should be possible to store and restore.
And though I realized the world_state doesn't store Entity types yet, only indicies... That is a problem I just realized...