//------------------------------------------------------------------------------
//
// 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"": ""03b13461-fc52-4aae-a953-31ebb16269bd"",
""actions"": [
{
""name"": ""Move"",
""type"": ""PassThrough"",
""id"": ""4188624a-1332-4844-9cd1-ca553dfd590e"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": ""2D Vector"",
""id"": ""549480a3-6195-416c-9d0c-0ff1859609e2"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""015a2d7f-19d3-4af9-90bf-4083b9a67c14"",
""path"": ""/w"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""8fd9c14f-380a-4cbf-9302-9ce2f754555e"",
""path"": ""/s"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""4db10dd8-4d4b-411c-8514-91455db6244e"",
""path"": ""/a"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""f5b73001-4a90-47b0-a161-7ba00cab50d1"",
""path"": ""/d"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
}
]
},
{
""name"": ""Combat"",
""id"": ""6f857a41-2ea8-4c63-889e-8505127b2d6a"",
""actions"": [
{
""name"": ""Attack"",
""type"": ""Button"",
""id"": ""37f709e8-1846-4d8b-9fc9-34760de1f766"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Dash"",
""type"": ""Button"",
""id"": ""4c34d031-b49c-4489-a4af-ba47dcba307b"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": """",
""id"": ""9769d740-b48f-4eb5-bc65-0d85c0cded02"",
""path"": ""/leftButton"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Attack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""2090d226-78b6-4c6f-86e5-7d0efe781205"",
""path"": ""/space"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Dash"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
},
{
""name"": ""Inventory"",
""id"": ""6166874e-b22c-4ed9-ba26-505cb38a8a3c"",
""actions"": [
{
""name"": ""Keyboard"",
""type"": ""Value"",
""id"": ""ff9b92a7-db35-4060-adad-938cb46de9e6"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
}
],
""bindings"": [
{
""name"": """",
""id"": ""79670d46-7d7f-467a-bc3b-b5e965788f12"",
""path"": ""/1"",
""interactions"": """",
""processors"": ""Scale"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""1c5b0249-1b49-4f55-8eeb-3a7fb53092cd"",
""path"": ""/2"",
""interactions"": """",
""processors"": ""Scale(factor=2)"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""e00cc44d-a70b-4f42-a2a1-e352faa2e0bd"",
""path"": ""/3"",
""interactions"": """",
""processors"": ""Scale(factor=3)"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""86d47e26-5ed2-42b0-a521-983d232d13e8"",
""path"": ""/4"",
""interactions"": """",
""processors"": ""Scale(factor=4)"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""ba631437-c6ed-430d-ae20-e7d2e6ee8f52"",
""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);
}
}