private void OnReAnchor(EntityUid uid, NodeContainerComponent component, ref ReAnchorEvent args)
 {
     foreach (var node in component.Nodes.Values)
     {
         _nodeGroupSystem.QueueNodeRemove(node);
         _nodeGroupSystem.QueueReflood(node);
     }
 }
Ejemplo n.º 2
0
 private void OnAirtightReAnchor(EntityUid uid, AirtightComponent airtight, ref ReAnchorEvent args)
 {
     foreach (var gridId in new[] { args.OldGrid, args.GridId })
     {
         // Update and invalidate new position.
         airtight.LastPosition = (gridId, args.TilePos);
         InvalidatePosition(gridId, args.TilePos);
     }
 }
Ejemplo n.º 3
0
        private void OnDockingReAnchor(EntityUid uid, DockingComponent component, ref ReAnchorEvent args)
        {
            if (!component.Docked)
            {
                return;
            }

            var other = Comp <DockingComponent>(component.DockedWith !.Value);

            Undock(component);
            Dock(component, other);
            _console.RefreshShuttleConsoles();
        }
 private void OnProviderReAnchor(EntityUid uid, ExtensionCableProviderComponent component, ref ReAnchorEvent args)
 {
     Disconnect(uid, component);
     Connect(uid, component);
 }
 private void OnReceiverReAnchor(EntityUid uid, ExtensionCableReceiverComponent receiver, ref ReAnchorEvent args)
 {
     Disconnect(uid, receiver);
     Connect(uid, receiver);
 }