Exemplo n.º 1
0
 internal StartJumpEvent InvokeEvent(StartJumpEvent arg)
 {
     if (_api.ValidateEvent(arg))
     {
         StartJump?.Invoke(_api, arg);
     }
     return(arg);
 }
Exemplo n.º 2
0
 private void FSDStartJumpCallback(StartJumpEvent obj)
 {
     if (obj.JumpType == "Hyperspace")
     {
         SetValue(() => HyperJump, true);
         SetValue(() => HyperJumpTarget, obj.StarSystem);
         SetValue(() => TargetStarClass, obj.StarClass);
     }
 }
Exemplo n.º 3
0
 private void AssertEvent(StartJumpEvent @event)
 {
     Assert.NotNull(@event);
     Assert.Equal(DateTime.Parse("2019-09-08T09:59:57Z"), @event.Timestamp);
     Assert.Equal(EventName, @event.Event);
     Assert.Equal(JumpType.Hyperspace, @event.JumpType);
     Assert.Equal("Scylla", @event.StarSystem);
     Assert.Equal(2008064955082, @event.SystemAddress);
     Assert.Equal("G", @event.StarClass);
 }
Exemplo n.º 4
0
 public void StartJump()
 {
     StartJumpEvent?.Invoke();
 }
Exemplo n.º 5
0
 private void StartJumpHandle(StartJumpEvent e)
 {
     isJumping = true;
 }
Exemplo n.º 6
0
 private void StartJumpHandle(StartJumpEvent e)
 {
     inputData.IsJumping = true;
 }
Exemplo n.º 7
0
 private void JumpHandle(StartJumpEvent e)
 {
     movement.Jump();
 }
Exemplo n.º 8
0
 private void StartJumpHandle(StartJumpEvent e)
 {
     data.IsJump = true;
 }
Exemplo n.º 9
0
 private void StartJumpHandle(StartJumpEvent e)
 {
     UpdatePlayerIfExist(player => player.IsJump = true);
 }
Exemplo n.º 10
0
 internal void InvokeStartJumpEvent(StartJumpEvent arg)
 {
     StartJumpEvent?.Invoke(this, arg);
 }
Exemplo n.º 11
0
 internal void InvokeStartJumpEvent(StartJumpEvent arg) => StartJumpEvent?.Invoke(null, arg);
Exemplo n.º 12
0
 void OnJump(StartJumpEvent e)
 {
     m_jumpPressedTime = 0;
 }