private void OnAttempt(EntityUid uid, SharedGhostComponent component, CancellableEntityEventArgs args) { if (!component.CanGhostInteract) { args.Cancel(); } }
private void OnPickupAttempt(EntityUid uid, SharedGhostComponent component, PickupAttemptEvent args) { if (!component.CanGhostInteract) { args.Cancel(); } }
public void SetCanReturnToBody(SharedGhostComponent component, bool canReturn) { if (component.CanReturnToBody == canReturn) { return; } component.CanReturnToBody = canReturn; component.Dirty(); }
private void OnGhostChangeCanReturnToBody(EntityUid uid, SharedGhostComponent component, GhostChangeCanReturnToBodyEvent args) { if (component.CanReturnToBody == args.CanReturnToBody) { return; } component.CanReturnToBody = args.CanReturnToBody; component.Dirty(); }
public void SetCanReturnToBody(SharedGhostComponent component, bool value) { component.CanReturnToBody = value; }
private void OnAttackAttempt(EntityUid uid, SharedGhostComponent component, AttackAttemptEvent args) { args.Cancel(); }