//------------------------------------------------------------------------------
//
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.7.0
// 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"": ""b667b3b3-bcee-478d-9685-55394d3b23c2"",
""actions"": [
{
""name"": ""Move"",
""type"": ""PassThrough"",
""id"": ""20affec2-5806-4be8-a2aa-d4073f4889d0"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": ""2D Vector"",
""id"": ""f19f90df-4e06-4eef-98ac-cd44eea9ea03"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""853e517e-2f7d-4f70-84e0-541c57eb9a6a"",
""path"": ""/w"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""78fd8fe2-cf8f-489e-88c6-f5a4b63d549e"",
""path"": ""/s"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""8575ad58-5e95-472c-bec0-6e63e4277013"",
""path"": ""/a"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""4753d88c-9cf0-4280-be93-1e1a2465c769"",
""path"": ""/d"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
}
]
},
{
""name"": ""Combat"",
""id"": ""5cd95254-49d0-49a9-b552-c568c1578f62"",
""actions"": [
{
""name"": ""Attack"",
""type"": ""Button"",
""id"": ""d329595c-274d-4b25-88c9-a5bbd0a4459e"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Dash"",
""type"": ""Button"",
""id"": ""b4b7c63c-1a2c-4914-8a49-2aa67259db1e"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": """",
""id"": ""4ee78ad9-afab-40cd-ac2a-6a99017dddbf"",
""path"": ""/leftButton"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Attack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""8e83f5c1-3bc2-4eea-90eb-701020ff98d5"",
""path"": ""/space"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Dash"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
},
{
""name"": ""Inventory"",
""id"": ""1cc89ae2-42f7-4844-aa92-75f26a534b31"",
""actions"": [
{
""name"": ""Keyboard"",
""type"": ""Value"",
""id"": ""f401a2ba-5853-4500-9e3a-a9e6554efcc7"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
}
],
""bindings"": [
{
""name"": """",
""id"": ""4f7225ef-0758-4479-b904-1bc40efecabd"",
""path"": ""/1"",
""interactions"": """",
""processors"": ""Scale"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""c7e4ba59-fc45-4ce1-a953-9441c0dd8985"",
""path"": ""/2"",
""interactions"": """",
""processors"": ""Scale(factor=2)"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""96405b04-6fc7-4130-aed3-4865b9006135"",
""path"": ""/3"",
""interactions"": """",
""processors"": ""Scale(factor=3)"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""08368222-4428-42ed-bfe4-d14f26391b4f"",
""path"": ""/4"",
""interactions"": """",
""processors"": ""Scale(factor=4)"",
""groups"": """",
""action"": ""Keyboard"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""aaf01f3f-61ed-4649-88ed-31c0b10e8b8b"",
""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);
}
}