mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-16 22:19:25 +07:00
more spawn/clone debug checks
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
## Backlog
|
## Backlog
|
||||||
|
|
||||||
- builders should be rewritten :/
|
|
||||||
- add PREFAB entity trait
|
- add PREFAB entity trait
|
||||||
- is/has_all/any for lists?
|
- is/has_all/any for lists?
|
||||||
|
|
||||||
|
|||||||
@@ -3163,6 +3163,7 @@ __defer_ops[__defer_op.spawn_entity] = function(bytes, index)
|
|||||||
local component_map = bytes[index + 1]
|
local component_map = bytes[index + 1]
|
||||||
|
|
||||||
if __debug_mode then
|
if __debug_mode then
|
||||||
|
__debug_fns.validate_entity(entity)
|
||||||
__debug_fns.validate_component_map(component_map)
|
__debug_fns.validate_component_map(component_map)
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -3204,6 +3205,8 @@ __defer_ops[__defer_op.clone_entity] = function(bytes, index)
|
|||||||
local component_map = bytes[index + 2]
|
local component_map = bytes[index + 2]
|
||||||
|
|
||||||
if __debug_mode then
|
if __debug_mode then
|
||||||
|
__debug_fns.validate_entity(entity)
|
||||||
|
__debug_fns.validate_prefab(prefab)
|
||||||
__debug_fns.validate_component_map(component_map)
|
__debug_fns.validate_component_map(component_map)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user