mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-05 22:03:52 -04:00
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.
This commit is contained in:
parent
3911e212a4
commit
2e5e965ae9
6 changed files with 148 additions and 15 deletions
|
@ -2,4 +2,5 @@ local PATH = (...):gsub("(%.init)$", "")
|
|||
|
||||
return {
|
||||
serializable = require(PATH..".serializable"),
|
||||
key = require(PATH..".key"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue