Add weapon acquisition and swapping systems with data handling
This commit is contained in:
@@ -13,4 +13,6 @@ public class InputStateComponent : IComponent, IInputService
|
||||
public bool IsJumping { get; set; }
|
||||
public Vector3 MoveDirection { get; set; }
|
||||
public Vector3 LookDirection { get; set; }
|
||||
public bool IsSwapWeaponNext { get; set; }
|
||||
public bool IsSwapWeaponPrevious { get; set; }
|
||||
}
|
||||
@@ -9,4 +9,6 @@ public interface IInputService
|
||||
public bool IsJumping { get; }
|
||||
public Vector3 MoveDirection { get; }
|
||||
public Vector3 LookDirection { get; }
|
||||
public bool IsSwapWeaponNext { get; }
|
||||
public bool IsSwapWeaponPrevious { get; }
|
||||
}
|
||||
@@ -20,5 +20,7 @@ public class PlayerInputSystem : ISystem
|
||||
inputState.IsJumping = world.InputService.IsJumping;
|
||||
inputState.IsInteracting = world.InputService.IsInteracting;
|
||||
inputState.IsFiring = world.InputService.IsFiring;
|
||||
inputState.IsSwapWeaponNext = world.InputService.IsSwapWeaponNext;
|
||||
inputState.IsSwapWeaponPrevious = world.InputService.IsSwapWeaponPrevious;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user