Commit graph

3 commits

Author SHA1 Message Date
Pablo Mayobre
9bccd05019 Usability improvements
- Now entity.key() is the same as entity.key.value
- Entity:serialize only serializes component given correctly
- Any other value inside the Entity is ignored
- Disable some diagnostics used in Lua language server by sumneko
2023-02-14 22:20:34 -03:00
flamendless
16c77c6a66 Fixed bug with serialization/deserialization 2023-02-14 22:20:34 -03:00
Pablo Ariel Mayobre
a55efd042a Entity's Keys
You can now give the 'key' component to Entities.

A key will be generated automatically and stored in Entity.key.value.

You can then use this key to fetch the Entity from the World with World:getEntityByKey(key)

The keys are generated with a generator function that can be overriden.
2023-02-14 22:20:34 -03:00