Files
brick-framework/GameCore/Input/InputStateComponent.cs

18 lines
589 B
C#

using GameCore.ECS.Interfaces;
using GameCore.Input.Interfaces;
using GameCore.Math;
namespace GameCore.Input;
public class InputStateComponent : IComponent, IInputService
{
public Vector3 MuzzlePosition { get; set; }
public Vector3 MuzzleDirection { get; set; }
public bool IsFiring { get; set; }
public bool IsInteracting { get; set; }
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; }
}