//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.6.3 // from Assets/Scripts/Player/Player Controls.inputactions // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public partial class @PlayerControls: IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @PlayerControls() { asset = InputActionAsset.FromJson(@"{ ""name"": ""Player Controls"", ""maps"": [ { ""name"": ""Movement"", ""id"": ""1ff3c60a-d366-43db-ba79-d01280a5cbd7"", ""actions"": [ { ""name"": ""Move"", ""type"": ""PassThrough"", ""id"": ""0674f21d-521a-4252-86d4-bc4ecec490b0"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": ""2D Vector"", ""id"": ""de5af3a6-2387-4d1e-bbb4-79e73f0505a3"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""bdaadf31-6a58-4279-9716-a72e8d575fb3"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""dbb95908-28f5-484e-8e68-7b606d2325a4"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""b9d453e4-4539-4602-a378-c7355bdc0c8c"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""b464b555-ae31-4fa6-9506-bf2cb28d2688"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true } ] }, { ""name"": ""Combat"", ""id"": ""aaba7bdb-a74a-4909-b66d-84584be7eb68"", ""actions"": [ { ""name"": ""Attack"", ""type"": ""Button"", ""id"": ""f573a601-1ddf-4a3a-a56d-4693e8fb2506"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Dash"", ""type"": ""Button"", ""id"": ""a9be554a-1f7a-495c-a64a-a36ec19a6f1b"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""9c2151ad-ef7f-4771-8a0d-fc483c30f38f"", ""path"": ""/leftButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Attack"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""6ae1e7d5-48df-49a5-a33f-fecc084346da"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Dash"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""Inventory"", ""id"": ""1559a201-03cf-4fb7-8fb6-881d519dab32"", ""actions"": [ { ""name"": ""Keyboard"", ""type"": ""Value"", ""id"": ""2622680a-d7b0-4b48-a382-47b2ea4c29b6"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true } ], ""bindings"": [ { ""name"": """", ""id"": ""cc7bd50a-fcf2-4290-8048-c0d413fb5649"", ""path"": ""/1"", ""interactions"": """", ""processors"": ""Scale"", ""groups"": """", ""action"": ""Keyboard"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""021a776c-5a8f-4c76-a5f4-55393436a564"", ""path"": ""/2"", ""interactions"": """", ""processors"": ""Scale(factor=2)"", ""groups"": """", ""action"": ""Keyboard"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""38d805ff-98e9-4b95-953a-5b396cec29cf"", ""path"": ""/3"", ""interactions"": """", ""processors"": ""Scale(factor=3)"", ""groups"": """", ""action"": ""Keyboard"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ed8e58ed-60a6-4164-b7aa-fb316d1b9666"", ""path"": ""/4"", ""interactions"": """", ""processors"": ""Scale(factor=4)"", ""groups"": """", ""action"": ""Keyboard"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""e9a0b439-10ce-4326-9245-7e4cd05ffe97"", ""path"": ""/5"", ""interactions"": """", ""processors"": ""Scale(factor=5)"", ""groups"": """", ""action"": ""Keyboard"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [] }"); // Movement m_Movement = asset.FindActionMap("Movement", throwIfNotFound: true); m_Movement_Move = m_Movement.FindAction("Move", throwIfNotFound: true); // Combat m_Combat = asset.FindActionMap("Combat", throwIfNotFound: true); m_Combat_Attack = m_Combat.FindAction("Attack", throwIfNotFound: true); m_Combat_Dash = m_Combat.FindAction("Dash", throwIfNotFound: true); // Inventory m_Inventory = asset.FindActionMap("Inventory", throwIfNotFound: true); m_Inventory_Keyboard = m_Inventory.FindAction("Keyboard", throwIfNotFound: true); } public void Dispose() { UnityEngine.Object.Destroy(asset); } public InputBinding? bindingMask { get => asset.bindingMask; set => asset.bindingMask = value; } public ReadOnlyArray? devices { get => asset.devices; set => asset.devices = value; } public ReadOnlyArray controlSchemes => asset.controlSchemes; public bool Contains(InputAction action) { return asset.Contains(action); } public IEnumerator GetEnumerator() { return asset.GetEnumerator(); } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } public void Enable() { asset.Enable(); } public void Disable() { asset.Disable(); } public IEnumerable bindings => asset.bindings; public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) { return asset.FindAction(actionNameOrId, throwIfNotFound); } public int FindBinding(InputBinding bindingMask, out InputAction action) { return asset.FindBinding(bindingMask, out action); } // Movement private readonly InputActionMap m_Movement; private List m_MovementActionsCallbackInterfaces = new List(); private readonly InputAction m_Movement_Move; public struct MovementActions { private @PlayerControls m_Wrapper; public MovementActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @Move => m_Wrapper.m_Movement_Move; public InputActionMap Get() { return m_Wrapper.m_Movement; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(MovementActions set) { return set.Get(); } public void AddCallbacks(IMovementActions instance) { if (instance == null || m_Wrapper.m_MovementActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_MovementActionsCallbackInterfaces.Add(instance); @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; } private void UnregisterCallbacks(IMovementActions instance) { @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; } public void RemoveCallbacks(IMovementActions instance) { if (m_Wrapper.m_MovementActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(IMovementActions instance) { foreach (var item in m_Wrapper.m_MovementActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_MovementActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public MovementActions @Movement => new MovementActions(this); // Combat private readonly InputActionMap m_Combat; private List m_CombatActionsCallbackInterfaces = new List(); private readonly InputAction m_Combat_Attack; private readonly InputAction m_Combat_Dash; public struct CombatActions { private @PlayerControls m_Wrapper; public CombatActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @Attack => m_Wrapper.m_Combat_Attack; public InputAction @Dash => m_Wrapper.m_Combat_Dash; public InputActionMap Get() { return m_Wrapper.m_Combat; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(CombatActions set) { return set.Get(); } public void AddCallbacks(ICombatActions instance) { if (instance == null || m_Wrapper.m_CombatActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_CombatActionsCallbackInterfaces.Add(instance); @Attack.started += instance.OnAttack; @Attack.performed += instance.OnAttack; @Attack.canceled += instance.OnAttack; @Dash.started += instance.OnDash; @Dash.performed += instance.OnDash; @Dash.canceled += instance.OnDash; } private void UnregisterCallbacks(ICombatActions instance) { @Attack.started -= instance.OnAttack; @Attack.performed -= instance.OnAttack; @Attack.canceled -= instance.OnAttack; @Dash.started -= instance.OnDash; @Dash.performed -= instance.OnDash; @Dash.canceled -= instance.OnDash; } public void RemoveCallbacks(ICombatActions instance) { if (m_Wrapper.m_CombatActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(ICombatActions instance) { foreach (var item in m_Wrapper.m_CombatActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_CombatActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public CombatActions @Combat => new CombatActions(this); // Inventory private readonly InputActionMap m_Inventory; private List m_InventoryActionsCallbackInterfaces = new List(); private readonly InputAction m_Inventory_Keyboard; public struct InventoryActions { private @PlayerControls m_Wrapper; public InventoryActions(@PlayerControls wrapper) { m_Wrapper = wrapper; } public InputAction @Keyboard => m_Wrapper.m_Inventory_Keyboard; public InputActionMap Get() { return m_Wrapper.m_Inventory; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(InventoryActions set) { return set.Get(); } public void AddCallbacks(IInventoryActions instance) { if (instance == null || m_Wrapper.m_InventoryActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_InventoryActionsCallbackInterfaces.Add(instance); @Keyboard.started += instance.OnKeyboard; @Keyboard.performed += instance.OnKeyboard; @Keyboard.canceled += instance.OnKeyboard; } private void UnregisterCallbacks(IInventoryActions instance) { @Keyboard.started -= instance.OnKeyboard; @Keyboard.performed -= instance.OnKeyboard; @Keyboard.canceled -= instance.OnKeyboard; } public void RemoveCallbacks(IInventoryActions instance) { if (m_Wrapper.m_InventoryActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(IInventoryActions instance) { foreach (var item in m_Wrapper.m_InventoryActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_InventoryActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public InventoryActions @Inventory => new InventoryActions(this); public interface IMovementActions { void OnMove(InputAction.CallbackContext context); } public interface ICombatActions { void OnAttack(InputAction.CallbackContext context); void OnDash(InputAction.CallbackContext context); } public interface IInventoryActions { void OnKeyboard(InputAction.CallbackContext context); } }