You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Restore direct connection to the target entity, if appropriate
186
197
ifself.entitythen
187
198
ifself.entity.validthen
188
-
self:connect_proxy(false)
199
+
self:disconnect_proxy()
189
200
end
190
201
self.entity=nil
191
202
end
@@ -197,50 +208,41 @@ function selector:destroy()
197
208
ifproxyandproxy.validthenproxy.destroy() end
198
209
end
199
210
200
-
-- Connect an entity with its proxy or bypass it to connect with its target.
201
-
-- If DEBUG is enabled, this will not attempt to reassign the target if assumed not necessary.
202
-
-- It will confirm whether the connection ends in the intended state in either case, raising an error if not.
203
-
---@paramstate?boolean # Defaults to true, which will connect the entity to its proxy. If false, disconnects the entity from its proxy (and connects it to its target directly).
204
-
---@paramexpect?boolean # If given, checks assumptions for debugging, to potentially expose faults in implementation that could otherwise go unnoticed in most normal use.
211
+
-- Connect an entity with its proxy (whether newly set up or possibly "detached" by entity movement).
0 commit comments