private static void BodyTypeChanged( EntityUid uid, DisposalTubeComponent component, ref PhysicsBodyTypeChangedEvent args) { component.AnchoredChanged(); }
private void OnRelayMovement(EntityUid uid, DisposalTubeComponent component, RelayMovementEntityEvent args) { if (_gameTiming.CurTime < component.LastClang + DisposalTubeComponent.ClangDelay) { return; } component.LastClang = _gameTiming.CurTime; SoundSystem.Play(component.ClangSound.GetSound(), Filter.Pvs(uid), uid); }
private void OnBreak(EntityUid uid, DisposalTubeComponent component, BreakageEventArgs args) { component.Disconnect(); }