mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-01-04 17:20:58 +07:00
return xxx_set debug mode
This commit is contained in:
@@ -5213,6 +5213,7 @@ function __evolved_set(entity, fragment, component)
|
|||||||
local fragment_primary, fragment_secondary, fragment_options =
|
local fragment_primary, fragment_secondary, fragment_options =
|
||||||
__evolved_unpack(fragment)
|
__evolved_unpack(fragment)
|
||||||
|
|
||||||
|
if __debug_mode then
|
||||||
if fragment_options < __PAIR_OPTIONS then
|
if fragment_options < __PAIR_OPTIONS then
|
||||||
if fragment_primary == __ANY_INDEX then
|
if fragment_primary == __ANY_INDEX then
|
||||||
__error_fmt('the id (%s) is a wildcard and cannot be set',
|
__error_fmt('the id (%s) is a wildcard and cannot be set',
|
||||||
@@ -5239,6 +5240,7 @@ function __evolved_set(entity, fragment, component)
|
|||||||
__universal_name(fragment))
|
__universal_name(fragment))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if __defer_depth > 0 then
|
if __defer_depth > 0 then
|
||||||
__defer_set(entity, fragment, component)
|
__defer_set(entity, fragment, component)
|
||||||
@@ -5726,6 +5728,7 @@ function __evolved_batch_set(query, fragment, component)
|
|||||||
__universal_name(query))
|
__universal_name(query))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if __debug_mode then
|
||||||
local fragment_primary, fragment_secondary, fragment_options =
|
local fragment_primary, fragment_secondary, fragment_options =
|
||||||
__evolved_unpack(fragment)
|
__evolved_unpack(fragment)
|
||||||
|
|
||||||
@@ -5755,6 +5758,7 @@ function __evolved_batch_set(query, fragment, component)
|
|||||||
__universal_name(fragment))
|
__universal_name(fragment))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if __defer_depth > 0 then
|
if __defer_depth > 0 then
|
||||||
__defer_batch_set(query, fragment, component)
|
__defer_batch_set(query, fragment, component)
|
||||||
@@ -6985,6 +6989,7 @@ function __builder_mt:set(fragment, component)
|
|||||||
local fragment_primary, fragment_secondary, fragment_options =
|
local fragment_primary, fragment_secondary, fragment_options =
|
||||||
__evolved_unpack(fragment)
|
__evolved_unpack(fragment)
|
||||||
|
|
||||||
|
if __debug_mode then
|
||||||
if fragment_options < __PAIR_OPTIONS then
|
if fragment_options < __PAIR_OPTIONS then
|
||||||
if fragment_primary == __ANY_INDEX then
|
if fragment_primary == __ANY_INDEX then
|
||||||
__error_fmt('the id (%s) is a wildcard and cannot be set',
|
__error_fmt('the id (%s) is a wildcard and cannot be set',
|
||||||
@@ -7011,6 +7016,7 @@ function __builder_mt:set(fragment, component)
|
|||||||
__universal_name(fragment))
|
__universal_name(fragment))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
do
|
do
|
||||||
---@type evolved.default?, evolved.duplicate?
|
---@type evolved.default?, evolved.duplicate?
|
||||||
|
|||||||
Reference in New Issue
Block a user