Commit graph

2 commits

Author SHA1 Message Date
Pablo Ariel Mayobre
2e5e965ae9 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.
2021-07-03 01:09:09 -03:00
Pablo Ariel Mayobre
f9f475ce48
Serializable component
You can remove the component to tell Concord an Entity shouldn't be serialized.

It's given automatically on Entity creation, but this can be disabled by changing Entity.SERIALIZE_BY_DEFAULT to false.
2021-05-05 12:47:39 -03:00