コード例 #1
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (args.Player.TryGetComponent(out ShuttleControllerComponent controller))
     {
         controller.RemoveController();
     }
 }
コード例 #2
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (args.Player.TryGetComponent(out CuffableComponent? cuffableComponent))
     {
         cuffableComponent.TryUncuff(args.Player);
     }
 }
コード例 #3
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out BuckleComponent? buckle))
     {
         buckle.TryUnbuckle(args.Player);
     }
 }
コード例 #4
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (args.Player.TryGetComponent(out FlammableComponent flammable))
     {
         flammable.Resist();
     }
 }
コード例 #5
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out CuffableComponent? cuffableComponent))
     {
         cuffableComponent.TryUncuff(args.Player);
     }
 }
コード例 #6
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (args.Player.TryGetComponent(out BuckleComponent buckle))
     {
         buckle.TryUnbuckle(args.Player);
     }
 }
コード例 #7
0
 private void OnClickAlert(ClickAlertEventArgs args)
 {
     if (args.Player.TryGetComponent(out FlammableComponent flammable))
     {
         flammable.Resist();
     }
 }
コード例 #8
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out FlammableComponent? flammable))
     {
         EntitySystem.Get <FlammableSystem>().Resist(args.Player, flammable);
     }
 }
コード例 #9
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (args.Player.TryGetComponent(out FlammableComponent? flammable))
     {
         EntitySystem.Get <FlammableSystem>().Resist(args.Player.Uid, flammable);
     }
 }
コード例 #10
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     if (IoCManager.Resolve <IEntityManager>().TryGetComponent(args.Player, out PilotComponent? pilotComponent) &&
         pilotComponent.Console != null)
     {
         EntitySystem.Get <ShuttleConsoleSystem>().RemovePilot(pilotComponent);
     }
 }
コード例 #11
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     EntitySystem
     .Get <SharedPullingSystem>()
     .GetPulled(args.Player)?
     .GetComponentOrNull <SharedPullableComponent>()?
     .TryStopPull();
 }
コード例 #12
0
        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);
            }
        }
コード例 #13
0
        public void AlertClicked(ClickAlertEventArgs args)
        {
            var ps = EntitySystem.Get <SharedPullingSystem>();
            var playerTargetPullable = ps.GetPulled(args.Player)?
                                       .GetComponentOrNull <SharedPullableComponent>();

            if (playerTargetPullable != null)
            {
                ps.TryStopPull(playerTargetPullable);
            }
        }
コード例 #14
0
        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);
            }
        }
コード例 #15
0
 public void AlertClicked(ClickAlertEventArgs args)
 {
     args.Player.GetComponentOrNull <SharedPullableComponent>()?.TryStopPull();
 }