//------------------------------------------------------------------------------
//
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.14.2
// from Assets/Settings/PlayerInputActions.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;
///
/// Provides programmatic access to , , and instances defined in asset "Assets/Settings/PlayerInputActions.inputactions".
///
///
/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified.
///
///
///
/// using namespace UnityEngine;
/// using UnityEngine.InputSystem;
///
/// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface.
/// public class Example : MonoBehaviour, MyActions.IPlayerActions
/// {
/// private MyActions_Actions m_Actions; // Source code representation of asset.
/// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map.
///
/// void Awake()
/// {
/// m_Actions = new MyActions_Actions(); // Create asset object.
/// m_Player = m_Actions.Player; // Extract action map object.
/// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions.
/// }
///
/// void OnDestroy()
/// {
/// m_Actions.Dispose(); // Destroy asset object.
/// }
///
/// void OnEnable()
/// {
/// m_Player.Enable(); // Enable all actions within map.
/// }
///
/// void OnDisable()
/// {
/// m_Player.Disable(); // Disable all actions within map.
/// }
///
/// #region Interface implementation of MyActions.IPlayerActions
///
/// // Invoked when "Move" action is either started, performed or canceled.
/// public void OnMove(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}");
/// }
///
/// // Invoked when "Attack" action is either started, performed or canceled.
/// public void OnAttack(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnAttack: {context.ReadValue<float>()}");
/// }
///
/// #endregion
/// }
///
///
public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
{
///
/// Provides access to the underlying asset instance.
///
public InputActionAsset asset { get; }
///
/// Constructs a new instance.
///
public @PlayerInputActions()
{
asset = InputActionAsset.FromJson(@"{
""version"": 1,
""name"": ""PlayerInputActions"",
""maps"": [
{
""name"": ""Gameplay"",
""id"": ""90bd98d7-0ab2-4ddb-8bda-5bfc6024b1aa"",
""actions"": [
{
""name"": ""Move"",
""type"": ""Value"",
""id"": ""f8621671-e257-429a-a12c-2bfb1b6fa21c"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Jump"",
""type"": ""Button"",
""id"": ""3e1fe2bd-b388-4d52-8fb3-dfcf600f7b7c"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Attack"",
""type"": ""Button"",
""id"": ""1bae501d-f515-4208-bd9e-594badc7654a"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""DownAttack"",
""type"": ""Button"",
""id"": ""6780773f-fbf3-4839-9e65-2a29c2401fa6"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""UpAttack"",
""type"": ""Button"",
""id"": ""2723de56-6408-4d6e-8056-0cb072462797"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Parry"",
""type"": ""Button"",
""id"": ""48970a05-4ed8-448a-b444-025ae53d81dc"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Dash"",
""type"": ""Button"",
""id"": ""ed351b14-2906-4142-aa33-e72a90cbde33"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""UseSpring"",
""type"": ""Button"",
""id"": ""a5cb6f2b-fa3f-4b59-9971-96111fa1fb1a"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SwitchSkyForm"",
""type"": ""Button"",
""id"": ""288ba219-3999-4951-95a5-7f59de67e9c2"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SwitchEarthForm"",
""type"": ""Button"",
""id"": ""1ebc4d85-1cd6-4730-abac-6020f74787e1"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SwitchDeathForm"",
""type"": ""Button"",
""id"": ""1d80c36d-a347-44ac-9498-f3bb262f5643"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SoulSkill"",
""type"": ""Button"",
""id"": ""32319b84-683d-4f2d-83ba-05b51ea9b1ca"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SpiritSkill1"",
""type"": ""Button"",
""id"": ""30295ff0-4361-4869-8d1f-50e1771aa5bb"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""SpiritSkill2"",
""type"": ""Button"",
""id"": ""f22da5d3-02d8-4b2c-a75b-354780638972"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Interact"",
""type"": ""Button"",
""id"": ""80cc682b-d9e7-4116-ab8a-f9b2547e4b30"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Pause"",
""type"": ""Button"",
""id"": ""b15ae123-2d81-4473-a16f-dc7f1a9d3527"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": """",
""id"": ""f47bddd8-497c-4b20-bd20-49e3bf22cc1f"",
""path"": ""/leftStick"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": ""2D Vector"",
""id"": ""60516856-67c8-42b6-8790-cd6dc65f9c36"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""2390c2cd-0e96-46fe-a8bf-a1dcc56e2be2"",
""path"": ""/w"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""4add46ae-9c9a-4385-81a0-5cd650aa89a6"",
""path"": ""/s"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""1b048b38-9e8d-43c5-b799-84eb988a7d3d"",
""path"": ""/a"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""72376aca-dc3f-4bf7-b498-7e7a5cf2d530"",
""path"": ""/d"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""d08d6693-130a-4115-ad04-76943aecd650"",
""path"": ""/space"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Jump"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""a796967d-fc1d-4140-9ec5-1fc31c2e6baf"",
""path"": ""/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Jump"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""048f33fb-9cff-4f7e-abbf-af978b2734ba"",
""path"": ""/j"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Attack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b26ed3a0-a5cd-4326-8082-188ccc5ecf03"",
""path"": ""/buttonWest"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Attack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""749d0374-1b13-48cc-9e09-c879439cb8da"",
""path"": ""/k"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""DownAttack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""acc3f1fb-d8a8-4914-a699-588289eaa7f9"",
""path"": ""/buttonEast"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""DownAttack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""3188507c-2cef-4027-a705-af55ba1fffef"",
""path"": ""/i"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""UpAttack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""54b289ce-cb61-4cca-a190-2b483a489e2b"",
""path"": ""/buttonNorth"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""UpAttack"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""16cbcd15-0ad3-4401-a36b-58a0bbe39aa8"",
""path"": ""/l"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Parry"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f7003344-a4b2-4d6b-aec9-ab45664171fe"",
""path"": ""/leftShoulder"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Parry"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""16a77134-efeb-48dc-a30d-ae14ef71f84f"",
""path"": ""/shift"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Dash"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""7ac6ff49-9207-4c08-b4b4-9e5d31340cc9"",
""path"": ""/leftStickPress"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Dash"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""60a4ecba-d76b-4b51-bae0-020cef911f06"",
""path"": ""/e"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""UseSpring"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""46863b31-cbac-43c3-af77-3271044cf4d3"",
""path"": ""/1"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SwitchSkyForm"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f50059a4-af56-4421-a26d-a08140691a8d"",
""path"": ""/2"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SwitchEarthForm"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""d3f987a2-c41b-4467-9869-6cfc6956447a"",
""path"": ""/3"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SwitchDeathForm"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""edb60745-4100-4170-811a-4cbaacaf0ec3"",
""path"": ""/q"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SoulSkill"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f942e098-a2e7-4946-9bfd-35066c91af6c"",
""path"": ""/z"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SpiritSkill1"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""0fe48fca-f061-4a3c-ab5a-e722985734e5"",
""path"": ""/x"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""SpiritSkill2"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""53b11fff-1bba-4875-818f-f432e0947f29"",
""path"": ""/f"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Interact"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b034df3b-f4ba-4ac7-94ca-67aa7ebb2a44"",
""path"": ""/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Interact"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""86509f63-b138-46ba-8e3b-9ae716574965"",
""path"": ""/escape"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Pause"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""67a6ab61-7698-4e80-8129-97285585eaff"",
""path"": ""/start"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Pause"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
},
{
""name"": ""UI"",
""id"": ""905d74a5-6596-4177-8377-8a05d113b186"",
""actions"": [
{
""name"": ""Navigate"",
""type"": ""Value"",
""id"": ""16469da9-bfd0-4a21-a370-d89bdb682245"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Submit"",
""type"": ""Button"",
""id"": ""133cd9f7-2cbb-4e69-a67f-929b5f258cef"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Cancel"",
""type"": ""Button"",
""id"": ""d6902a56-8d24-401e-a0e7-1d9f24743377"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Pause"",
""type"": ""Button"",
""id"": ""bb4dfee5-99f7-43a5-971f-2e727227ae24"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Point"",
""type"": ""Value"",
""id"": ""4e32bfb2-f45a-4606-8b3f-74578320de78"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
}
],
""bindings"": [
{
""name"": """",
""id"": ""33e3a0ed-3d92-4e66-89f1-d35c7f47a2bd"",
""path"": ""/leftStick"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": ""2D Vector"",
""id"": ""0445f630-8dc6-438d-bbe9-46c34ae7abc6"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Navigate"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""60f27c2f-f363-44bb-b0f4-cdef654322ae"",
""path"": ""/upArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""4567655f-b7a9-4458-a0c0-929d4020a401"",
""path"": ""/downArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""f10bf7f0-6a08-4d8a-893d-efe31c6a95e3"",
""path"": ""/leftArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""da749bdf-d05f-490c-827f-ab184a156c66"",
""path"": ""/rightArrow"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Navigate"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""6cc5c2c6-aa18-4f9e-a5ab-624147a93203"",
""path"": ""/enter"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Submit"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""80758152-6c57-4b22-add3-98b2a6b1c113"",
""path"": ""/buttonSouth"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Submit"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""f8621671-e257-429a-b12c-2bfb1b6fa21c"",
""path"": ""/escape"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Cancel"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""0ca5a00e-8110-45e3-8465-0cbb6f3ea4aa"",
""path"": ""/buttonEast"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Cancel"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""58af2641-5e8b-4e49-89e6-5e47ada4fb07"",
""path"": ""/escape"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Pause"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""85ed737c-425e-4e66-a050-12b1ae5588ce"",
""path"": ""/start"",
""interactions"": """",
""processors"": """",
""groups"": ""Gamepad"",
""action"": ""Pause"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""4add46ae-9c9a-4385-b180-5cd650aa89a6"",
""path"": ""/position"",
""interactions"": """",
""processors"": """",
""groups"": ""Keyboard&Mouse"",
""action"": ""Point"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
],
""controlSchemes"": [
{
""name"": ""Keyboard&Mouse"",
""bindingGroup"": ""Keyboard&Mouse"",
""devices"": [
{
""devicePath"": """",
""isOptional"": false,
""isOR"": false
},
{
""devicePath"": """",
""isOptional"": true,
""isOR"": false
}
]
},
{
""name"": ""Gamepad"",
""bindingGroup"": ""Gamepad"",
""devices"": [
{
""devicePath"": """",
""isOptional"": false,
""isOR"": false
}
]
}
]
}");
// Gameplay
m_Gameplay = asset.FindActionMap("Gameplay", throwIfNotFound: true);
m_Gameplay_Move = m_Gameplay.FindAction("Move", throwIfNotFound: true);
m_Gameplay_Jump = m_Gameplay.FindAction("Jump", throwIfNotFound: true);
m_Gameplay_Attack = m_Gameplay.FindAction("Attack", throwIfNotFound: true);
m_Gameplay_DownAttack = m_Gameplay.FindAction("DownAttack", throwIfNotFound: true);
m_Gameplay_UpAttack = m_Gameplay.FindAction("UpAttack", throwIfNotFound: true);
m_Gameplay_Parry = m_Gameplay.FindAction("Parry", throwIfNotFound: true);
m_Gameplay_Dash = m_Gameplay.FindAction("Dash", throwIfNotFound: true);
m_Gameplay_UseSpring = m_Gameplay.FindAction("UseSpring", throwIfNotFound: true);
m_Gameplay_SwitchSkyForm = m_Gameplay.FindAction("SwitchSkyForm", throwIfNotFound: true);
m_Gameplay_SwitchEarthForm = m_Gameplay.FindAction("SwitchEarthForm", throwIfNotFound: true);
m_Gameplay_SwitchDeathForm = m_Gameplay.FindAction("SwitchDeathForm", throwIfNotFound: true);
m_Gameplay_SoulSkill = m_Gameplay.FindAction("SoulSkill", throwIfNotFound: true);
m_Gameplay_SpiritSkill1 = m_Gameplay.FindAction("SpiritSkill1", throwIfNotFound: true);
m_Gameplay_SpiritSkill2 = m_Gameplay.FindAction("SpiritSkill2", throwIfNotFound: true);
m_Gameplay_Interact = m_Gameplay.FindAction("Interact", throwIfNotFound: true);
m_Gameplay_Pause = m_Gameplay.FindAction("Pause", throwIfNotFound: true);
// UI
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
m_UI_Submit = m_UI.FindAction("Submit", throwIfNotFound: true);
m_UI_Cancel = m_UI.FindAction("Cancel", throwIfNotFound: true);
m_UI_Pause = m_UI.FindAction("Pause", throwIfNotFound: true);
m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true);
}
~@PlayerInputActions()
{
UnityEngine.Debug.Assert(!m_Gameplay.enabled, "This will cause a leak and performance issues, PlayerInputActions.Gameplay.Disable() has not been called.");
UnityEngine.Debug.Assert(!m_UI.enabled, "This will cause a leak and performance issues, PlayerInputActions.UI.Disable() has not been called.");
}
///
/// Destroys this asset and all associated instances.
///
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);
}
// Gameplay
private readonly InputActionMap m_Gameplay;
private List m_GameplayActionsCallbackInterfaces = new List();
private readonly InputAction m_Gameplay_Move;
private readonly InputAction m_Gameplay_Jump;
private readonly InputAction m_Gameplay_Attack;
private readonly InputAction m_Gameplay_DownAttack;
private readonly InputAction m_Gameplay_UpAttack;
private readonly InputAction m_Gameplay_Parry;
private readonly InputAction m_Gameplay_Dash;
private readonly InputAction m_Gameplay_UseSpring;
private readonly InputAction m_Gameplay_SwitchSkyForm;
private readonly InputAction m_Gameplay_SwitchEarthForm;
private readonly InputAction m_Gameplay_SwitchDeathForm;
private readonly InputAction m_Gameplay_SoulSkill;
private readonly InputAction m_Gameplay_SpiritSkill1;
private readonly InputAction m_Gameplay_SpiritSkill2;
private readonly InputAction m_Gameplay_Interact;
private readonly InputAction m_Gameplay_Pause;
///
/// Provides access to input actions defined in input action map "Gameplay".
///
public struct GameplayActions
{
private @PlayerInputActions m_Wrapper;
///
/// Construct a new instance of the input action map wrapper class.
///
public GameplayActions(@PlayerInputActions wrapper) { m_Wrapper = wrapper; }
///
/// Provides access to the underlying input action "Gameplay/Move".
///
public InputAction @Move => m_Wrapper.m_Gameplay_Move;
///
/// Provides access to the underlying input action "Gameplay/Jump".
///
public InputAction @Jump => m_Wrapper.m_Gameplay_Jump;
///
/// Provides access to the underlying input action "Gameplay/Attack".
///
public InputAction @Attack => m_Wrapper.m_Gameplay_Attack;
///
/// Provides access to the underlying input action "Gameplay/DownAttack".
///
public InputAction @DownAttack => m_Wrapper.m_Gameplay_DownAttack;
///
/// Provides access to the underlying input action "Gameplay/UpAttack".
///
public InputAction @UpAttack => m_Wrapper.m_Gameplay_UpAttack;
///
/// Provides access to the underlying input action "Gameplay/Parry".
///
public InputAction @Parry => m_Wrapper.m_Gameplay_Parry;
///
/// Provides access to the underlying input action "Gameplay/Dash".
///
public InputAction @Dash => m_Wrapper.m_Gameplay_Dash;
///
/// Provides access to the underlying input action "Gameplay/UseSpring".
///
public InputAction @UseSpring => m_Wrapper.m_Gameplay_UseSpring;
///
/// Provides access to the underlying input action "Gameplay/SwitchSkyForm".
///
public InputAction @SwitchSkyForm => m_Wrapper.m_Gameplay_SwitchSkyForm;
///
/// Provides access to the underlying input action "Gameplay/SwitchEarthForm".
///
public InputAction @SwitchEarthForm => m_Wrapper.m_Gameplay_SwitchEarthForm;
///
/// Provides access to the underlying input action "Gameplay/SwitchDeathForm".
///
public InputAction @SwitchDeathForm => m_Wrapper.m_Gameplay_SwitchDeathForm;
///
/// Provides access to the underlying input action "Gameplay/SoulSkill".
///
public InputAction @SoulSkill => m_Wrapper.m_Gameplay_SoulSkill;
///
/// Provides access to the underlying input action "Gameplay/SpiritSkill1".
///
public InputAction @SpiritSkill1 => m_Wrapper.m_Gameplay_SpiritSkill1;
///
/// Provides access to the underlying input action "Gameplay/SpiritSkill2".
///
public InputAction @SpiritSkill2 => m_Wrapper.m_Gameplay_SpiritSkill2;
///
/// Provides access to the underlying input action "Gameplay/Interact".
///
public InputAction @Interact => m_Wrapper.m_Gameplay_Interact;
///
/// Provides access to the underlying input action "Gameplay/Pause".
///
public InputAction @Pause => m_Wrapper.m_Gameplay_Pause;
///
/// Provides access to the underlying input action map instance.
///
public InputActionMap Get() { return m_Wrapper.m_Gameplay; }
///
public void Enable() { Get().Enable(); }
///
public void Disable() { Get().Disable(); }
///
public bool enabled => Get().enabled;
///
/// Implicitly converts an to an instance.
///
public static implicit operator InputActionMap(GameplayActions set) { return set.Get(); }
///
/// Adds , and callbacks provided via on all input actions contained in this map.
///
/// Callback instance.
///
/// If is null or have already been added this method does nothing.
///
///
public void AddCallbacks(IGameplayActions instance)
{
if (instance == null || m_Wrapper.m_GameplayActionsCallbackInterfaces.Contains(instance)) return;
m_Wrapper.m_GameplayActionsCallbackInterfaces.Add(instance);
@Move.started += instance.OnMove;
@Move.performed += instance.OnMove;
@Move.canceled += instance.OnMove;
@Jump.started += instance.OnJump;
@Jump.performed += instance.OnJump;
@Jump.canceled += instance.OnJump;
@Attack.started += instance.OnAttack;
@Attack.performed += instance.OnAttack;
@Attack.canceled += instance.OnAttack;
@DownAttack.started += instance.OnDownAttack;
@DownAttack.performed += instance.OnDownAttack;
@DownAttack.canceled += instance.OnDownAttack;
@UpAttack.started += instance.OnUpAttack;
@UpAttack.performed += instance.OnUpAttack;
@UpAttack.canceled += instance.OnUpAttack;
@Parry.started += instance.OnParry;
@Parry.performed += instance.OnParry;
@Parry.canceled += instance.OnParry;
@Dash.started += instance.OnDash;
@Dash.performed += instance.OnDash;
@Dash.canceled += instance.OnDash;
@UseSpring.started += instance.OnUseSpring;
@UseSpring.performed += instance.OnUseSpring;
@UseSpring.canceled += instance.OnUseSpring;
@SwitchSkyForm.started += instance.OnSwitchSkyForm;
@SwitchSkyForm.performed += instance.OnSwitchSkyForm;
@SwitchSkyForm.canceled += instance.OnSwitchSkyForm;
@SwitchEarthForm.started += instance.OnSwitchEarthForm;
@SwitchEarthForm.performed += instance.OnSwitchEarthForm;
@SwitchEarthForm.canceled += instance.OnSwitchEarthForm;
@SwitchDeathForm.started += instance.OnSwitchDeathForm;
@SwitchDeathForm.performed += instance.OnSwitchDeathForm;
@SwitchDeathForm.canceled += instance.OnSwitchDeathForm;
@SoulSkill.started += instance.OnSoulSkill;
@SoulSkill.performed += instance.OnSoulSkill;
@SoulSkill.canceled += instance.OnSoulSkill;
@SpiritSkill1.started += instance.OnSpiritSkill1;
@SpiritSkill1.performed += instance.OnSpiritSkill1;
@SpiritSkill1.canceled += instance.OnSpiritSkill1;
@SpiritSkill2.started += instance.OnSpiritSkill2;
@SpiritSkill2.performed += instance.OnSpiritSkill2;
@SpiritSkill2.canceled += instance.OnSpiritSkill2;
@Interact.started += instance.OnInteract;
@Interact.performed += instance.OnInteract;
@Interact.canceled += instance.OnInteract;
@Pause.started += instance.OnPause;
@Pause.performed += instance.OnPause;
@Pause.canceled += instance.OnPause;
}
///
/// Removes , and callbacks provided via on all input actions contained in this map.
///
///
/// Calling this method when have not previously been registered has no side-effects.
///
///
private void UnregisterCallbacks(IGameplayActions instance)
{
@Move.started -= instance.OnMove;
@Move.performed -= instance.OnMove;
@Move.canceled -= instance.OnMove;
@Jump.started -= instance.OnJump;
@Jump.performed -= instance.OnJump;
@Jump.canceled -= instance.OnJump;
@Attack.started -= instance.OnAttack;
@Attack.performed -= instance.OnAttack;
@Attack.canceled -= instance.OnAttack;
@DownAttack.started -= instance.OnDownAttack;
@DownAttack.performed -= instance.OnDownAttack;
@DownAttack.canceled -= instance.OnDownAttack;
@UpAttack.started -= instance.OnUpAttack;
@UpAttack.performed -= instance.OnUpAttack;
@UpAttack.canceled -= instance.OnUpAttack;
@Parry.started -= instance.OnParry;
@Parry.performed -= instance.OnParry;
@Parry.canceled -= instance.OnParry;
@Dash.started -= instance.OnDash;
@Dash.performed -= instance.OnDash;
@Dash.canceled -= instance.OnDash;
@UseSpring.started -= instance.OnUseSpring;
@UseSpring.performed -= instance.OnUseSpring;
@UseSpring.canceled -= instance.OnUseSpring;
@SwitchSkyForm.started -= instance.OnSwitchSkyForm;
@SwitchSkyForm.performed -= instance.OnSwitchSkyForm;
@SwitchSkyForm.canceled -= instance.OnSwitchSkyForm;
@SwitchEarthForm.started -= instance.OnSwitchEarthForm;
@SwitchEarthForm.performed -= instance.OnSwitchEarthForm;
@SwitchEarthForm.canceled -= instance.OnSwitchEarthForm;
@SwitchDeathForm.started -= instance.OnSwitchDeathForm;
@SwitchDeathForm.performed -= instance.OnSwitchDeathForm;
@SwitchDeathForm.canceled -= instance.OnSwitchDeathForm;
@SoulSkill.started -= instance.OnSoulSkill;
@SoulSkill.performed -= instance.OnSoulSkill;
@SoulSkill.canceled -= instance.OnSoulSkill;
@SpiritSkill1.started -= instance.OnSpiritSkill1;
@SpiritSkill1.performed -= instance.OnSpiritSkill1;
@SpiritSkill1.canceled -= instance.OnSpiritSkill1;
@SpiritSkill2.started -= instance.OnSpiritSkill2;
@SpiritSkill2.performed -= instance.OnSpiritSkill2;
@SpiritSkill2.canceled -= instance.OnSpiritSkill2;
@Interact.started -= instance.OnInteract;
@Interact.performed -= instance.OnInteract;
@Interact.canceled -= instance.OnInteract;
@Pause.started -= instance.OnPause;
@Pause.performed -= instance.OnPause;
@Pause.canceled -= instance.OnPause;
}
///
/// Unregisters and unregisters all input action callbacks via .
///
///
public void RemoveCallbacks(IGameplayActions instance)
{
if (m_Wrapper.m_GameplayActionsCallbackInterfaces.Remove(instance))
UnregisterCallbacks(instance);
}
///
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via .
///
///
/// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks.
///
///
///
///
public void SetCallbacks(IGameplayActions instance)
{
foreach (var item in m_Wrapper.m_GameplayActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_GameplayActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
///
/// Provides a new instance referencing this action map.
///
public GameplayActions @Gameplay => new GameplayActions(this);
// UI
private readonly InputActionMap m_UI;
private List m_UIActionsCallbackInterfaces = new List();
private readonly InputAction m_UI_Navigate;
private readonly InputAction m_UI_Submit;
private readonly InputAction m_UI_Cancel;
private readonly InputAction m_UI_Pause;
private readonly InputAction m_UI_Point;
///
/// Provides access to input actions defined in input action map "UI".
///
public struct UIActions
{
private @PlayerInputActions m_Wrapper;
///
/// Construct a new instance of the input action map wrapper class.
///
public UIActions(@PlayerInputActions wrapper) { m_Wrapper = wrapper; }
///
/// Provides access to the underlying input action "UI/Navigate".
///
public InputAction @Navigate => m_Wrapper.m_UI_Navigate;
///
/// Provides access to the underlying input action "UI/Submit".
///
public InputAction @Submit => m_Wrapper.m_UI_Submit;
///
/// Provides access to the underlying input action "UI/Cancel".
///
public InputAction @Cancel => m_Wrapper.m_UI_Cancel;
///
/// Provides access to the underlying input action "UI/Pause".
///
public InputAction @Pause => m_Wrapper.m_UI_Pause;
///
/// Provides access to the underlying input action "UI/Point".
///
public InputAction @Point => m_Wrapper.m_UI_Point;
///
/// Provides access to the underlying input action map instance.
///
public InputActionMap Get() { return m_Wrapper.m_UI; }
///
public void Enable() { Get().Enable(); }
///
public void Disable() { Get().Disable(); }
///
public bool enabled => Get().enabled;
///
/// Implicitly converts an to an instance.
///
public static implicit operator InputActionMap(UIActions set) { return set.Get(); }
///
/// Adds , and callbacks provided via on all input actions contained in this map.
///
/// Callback instance.
///
/// If is null or have already been added this method does nothing.
///
///
public void AddCallbacks(IUIActions instance)
{
if (instance == null || m_Wrapper.m_UIActionsCallbackInterfaces.Contains(instance)) return;
m_Wrapper.m_UIActionsCallbackInterfaces.Add(instance);
@Navigate.started += instance.OnNavigate;
@Navigate.performed += instance.OnNavigate;
@Navigate.canceled += instance.OnNavigate;
@Submit.started += instance.OnSubmit;
@Submit.performed += instance.OnSubmit;
@Submit.canceled += instance.OnSubmit;
@Cancel.started += instance.OnCancel;
@Cancel.performed += instance.OnCancel;
@Cancel.canceled += instance.OnCancel;
@Pause.started += instance.OnPause;
@Pause.performed += instance.OnPause;
@Pause.canceled += instance.OnPause;
@Point.started += instance.OnPoint;
@Point.performed += instance.OnPoint;
@Point.canceled += instance.OnPoint;
}
///
/// Removes , and callbacks provided via on all input actions contained in this map.
///
///
/// Calling this method when have not previously been registered has no side-effects.
///
///
private void UnregisterCallbacks(IUIActions instance)
{
@Navigate.started -= instance.OnNavigate;
@Navigate.performed -= instance.OnNavigate;
@Navigate.canceled -= instance.OnNavigate;
@Submit.started -= instance.OnSubmit;
@Submit.performed -= instance.OnSubmit;
@Submit.canceled -= instance.OnSubmit;
@Cancel.started -= instance.OnCancel;
@Cancel.performed -= instance.OnCancel;
@Cancel.canceled -= instance.OnCancel;
@Pause.started -= instance.OnPause;
@Pause.performed -= instance.OnPause;
@Pause.canceled -= instance.OnPause;
@Point.started -= instance.OnPoint;
@Point.performed -= instance.OnPoint;
@Point.canceled -= instance.OnPoint;
}
///
/// Unregisters and unregisters all input action callbacks via .
///
///
public void RemoveCallbacks(IUIActions instance)
{
if (m_Wrapper.m_UIActionsCallbackInterfaces.Remove(instance))
UnregisterCallbacks(instance);
}
///
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via .
///
///
/// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks.
///
///
///
///
public void SetCallbacks(IUIActions instance)
{
foreach (var item in m_Wrapper.m_UIActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_UIActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
///
/// Provides a new instance referencing this action map.
///
public UIActions @UI => new UIActions(this);
private int m_KeyboardMouseSchemeIndex = -1;
///
/// Provides access to the input control scheme.
///
///
public InputControlScheme KeyboardMouseScheme
{
get
{
if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse");
return asset.controlSchemes[m_KeyboardMouseSchemeIndex];
}
}
private int m_GamepadSchemeIndex = -1;
///
/// Provides access to the input control scheme.
///
///
public InputControlScheme GamepadScheme
{
get
{
if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad");
return asset.controlSchemes[m_GamepadSchemeIndex];
}
}
///
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Gameplay" which allows adding and removing callbacks.
///
///
///
public interface IGameplayActions
{
///
/// Method invoked when associated input action "Move" is either , or .
///
///
///
///
void OnMove(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Jump" is either , or .
///
///
///
///
void OnJump(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Attack" is either , or .
///
///
///
///
void OnAttack(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "DownAttack" is either , or .
///
///
///
///
void OnDownAttack(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "UpAttack" is either , or .
///
///
///
///
void OnUpAttack(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Parry" is either , or .
///
///
///
///
void OnParry(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Dash" is either , or .
///
///
///
///
void OnDash(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "UseSpring" is either , or .
///
///
///
///
void OnUseSpring(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "SwitchSkyForm" is either , or .
///
///
///
///
void OnSwitchSkyForm(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "SwitchEarthForm" is either , or .
///
///
///
///
void OnSwitchEarthForm(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "SwitchDeathForm" is either , or .
///
///
///
///
void OnSwitchDeathForm(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "SoulSkill" is either , or .
///
///
///
///
void OnSoulSkill(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "SpiritSkill1" is either , or .
///
///
///
///
void OnSpiritSkill1(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "SpiritSkill2" is either , or .
///
///
///
///
void OnSpiritSkill2(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Interact" is either , or .
///
///
///
///
void OnInteract(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Pause" is either , or .
///
///
///
///
void OnPause(InputAction.CallbackContext context);
}
///
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks.
///
///
///
public interface IUIActions
{
///
/// Method invoked when associated input action "Navigate" is either , or .
///
///
///
///
void OnNavigate(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Submit" is either , or .
///
///
///
///
void OnSubmit(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Cancel" is either , or .
///
///
///
///
void OnCancel(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Pause" is either , or .
///
///
///
///
void OnPause(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Point" is either , or .
///
///
///
///
void OnPoint(InputAction.CallbackContext context);
}
}