Add weapon acquisition and swapping systems with data handling

This commit is contained in:
2025-10-29 01:26:35 +01:00
parent 09fa293c81
commit 6d00b8d6ab
12 changed files with 185 additions and 1 deletions

View File

@@ -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; }
}

View File

@@ -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; }
}

View File

@@ -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;
}
}