return xxx_set debug mode

This commit is contained in:
BlackMATov
2025-09-01 01:59:00 +07:00
parent 26bf586140
commit 0c016f1b67

View File

@@ -5213,6 +5213,7 @@ function __evolved_set(entity, fragment, component)
local fragment_primary, fragment_secondary, fragment_options =
__evolved_unpack(fragment)
if __debug_mode then
if fragment_options < __PAIR_OPTIONS then
if fragment_primary == __ANY_INDEX then
__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))
end
end
end
if __defer_depth > 0 then
__defer_set(entity, fragment, component)
@@ -5726,6 +5728,7 @@ function __evolved_batch_set(query, fragment, component)
__universal_name(query))
end
if __debug_mode then
local fragment_primary, fragment_secondary, fragment_options =
__evolved_unpack(fragment)
@@ -5755,6 +5758,7 @@ function __evolved_batch_set(query, fragment, component)
__universal_name(fragment))
end
end
end
if __defer_depth > 0 then
__defer_batch_set(query, fragment, component)
@@ -6985,6 +6989,7 @@ function __builder_mt:set(fragment, component)
local fragment_primary, fragment_secondary, fragment_options =
__evolved_unpack(fragment)
if __debug_mode then
if fragment_options < __PAIR_OPTIONS then
if fragment_primary == __ANY_INDEX then
__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))
end
end
end
do
---@type evolved.default?, evolved.duplicate?