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
This commit is contained in:
Pablo Mayobre 2021-11-25 17:12:05 -03:00
parent e4713fd2d8
commit 2621d7a9ea
No known key found for this signature in database
GPG key ID: FE41C6443B456D4E
5 changed files with 9 additions and 1 deletions

View file

@ -476,6 +476,7 @@ end
return setmetatable(World, {
__call = function(_, ...)
---@diagnostic disable-next-line: redundant-parameter
return World.new(...)
end,
})