public void AlertClicked(ClickAlertEventArgs args) { if (args.Player.TryGetComponent(out ShuttleControllerComponent controller)) { controller.RemoveController(); } }
public void AlertClicked(ClickAlertEventArgs args) { if (args.Player.TryGetComponent(out CuffableComponent? cuffableComponent)) { cuffableComponent.TryUncuff(args.Player); } }
public void AlertClicked(ClickAlertEventArgs args) { if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out BuckleComponent? buckle)) { buckle.TryUnbuckle(args.Player); } }
public void AlertClicked(ClickAlertEventArgs args) { if (args.Player.TryGetComponent(out FlammableComponent flammable)) { flammable.Resist(); } }
public void AlertClicked(ClickAlertEventArgs args) { if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out CuffableComponent? cuffableComponent)) { cuffableComponent.TryUncuff(args.Player); } }
public void AlertClicked(ClickAlertEventArgs args) { if (args.Player.TryGetComponent(out BuckleComponent buckle)) { buckle.TryUnbuckle(args.Player); } }
private void OnClickAlert(ClickAlertEventArgs args) { if (args.Player.TryGetComponent(out FlammableComponent flammable)) { flammable.Resist(); } }
public void AlertClicked(ClickAlertEventArgs args) { if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out FlammableComponent? flammable)) { EntitySystem.Get <FlammableSystem>().Resist(args.Player, flammable); } }
public void AlertClicked(ClickAlertEventArgs args) { if (args.Player.TryGetComponent(out FlammableComponent? flammable)) { EntitySystem.Get <FlammableSystem>().Resist(args.Player.Uid, flammable); } }
public void AlertClicked(ClickAlertEventArgs args) { if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out PilotComponent? pilotComponent) && pilotComponent.Console != null) { EntitySystem.Get <ShuttleConsoleSystem>().RemovePilot(pilotComponent); } }
public void AlertClicked(ClickAlertEventArgs args) { EntitySystem .Get <SharedPullingSystem>() .GetPulled(args.Player)? .GetComponentOrNull <SharedPullableComponent>()? .TryStopPull(); }
public void AlertClicked(ClickAlertEventArgs args) { var ps = EntitySystem.Get <SharedPullingSystem>(); var playerTarget = ps.GetPulled(args.Player); if (playerTarget != default && IoCManager.Resolve <IEntityManager>().TryGetComponent(playerTarget, out SharedPullableComponent playerPullable)) { ps.TryStopPull(playerPullable); } }
public void AlertClicked(ClickAlertEventArgs args) { var ps = EntitySystem.Get <SharedPullingSystem>(); var playerTargetPullable = ps.GetPulled(args.Player)? .GetComponentOrNull <SharedPullableComponent>(); if (playerTargetPullable != null) { ps.TryStopPull(playerTargetPullable); } }
public void AlertClicked(ClickAlertEventArgs args) { if (!EntitySystem.Get <ActionBlockerSystem>().CanInteract(args.Player)) { return; } if (args.Player.TryGetComponent <SharedPullableComponent>(out var playerPullable)) { EntitySystem.Get <SharedPullingSystem>().TryStopPull(playerPullable); } }
public void AlertClicked(ClickAlertEventArgs args) { args.Player.GetComponentOrNull <SharedPullableComponent>()?.TryStopPull(); }