//------------------------------------------------------------------------------
//
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.18.0
// from Assets/11_Input/GameInput.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/11_Input/GameInput.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 @GameInput: IInputActionCollection2, IDisposable
{
///
/// Provides access to the underlying asset instance.
///
public InputActionAsset asset { get; }
///
/// Constructs a new instance.
///
public @GameInput()
{
asset = InputActionAsset.FromJson(@"{
""version"": 1,
""name"": ""GameInput"",
""maps"": [
{
""name"": ""Player"",
""id"": ""e331468a-870b-4a9d-adfc-33c89a2aa65d"",
""actions"": [
{
""name"": ""Move"",
""type"": ""Value"",
""id"": ""63ac178d-1333-427a-9f57-780afc877807"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Jump"",
""type"": ""Button"",
""id"": ""a8c7f1d2-3e4b-4a5c-9d6e-7f8901234567"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Punch"",
""type"": ""Button"",
""id"": ""3dcb1343-a166-469d-990e-24ccedf2d09e"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Kick"",
""type"": ""Button"",
""id"": ""1af50460-846d-4f2a-8030-f9712ad7df6b"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Dash"",
""type"": ""Button"",
""id"": ""4245d8e3-7e61-4548-84af-75512958eb2f"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Roll"",
""type"": ""Button"",
""id"": ""7e00ae7c-ad0c-460d-be3d-0072054ceb9c"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""BackDash"",
""type"": ""Button"",
""id"": ""673f5cb8-598b-48d3-bef8-0092cf7f4ba6"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""GrabSmash"",
""type"": ""Button"",
""id"": ""c42f3219-3aca-4678-8a86-b74565af3747"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""WeaponSlot1"",
""type"": ""Button"",
""id"": ""a1b2c3d4-1111-1111-1111-111111111111"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""WeaponSlot2"",
""type"": ""Button"",
""id"": ""a1b2c3d4-2222-2222-2222-222222222222"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""WeaponSlot3"",
""type"": ""Button"",
""id"": ""a1b2c3d4-3333-3333-3333-333333333333"",
""expectedControlType"": """",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": ""2D Vector"",
""id"": ""1c7aa2cd-7385-4e38-8392-a1cecb8adc98"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""50a77fe5-4fb2-4e7a-bd0c-973407f67e90"",
""path"": ""/upArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""2306a862-a3c3-48b1-8a28-ce80c7d9e2ea"",
""path"": ""/downArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""819efc78-8db1-481e-b737-4fef39f2fa3f"",
""path"": ""/leftArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""eab43684-ffd8-44c3-bca7-03dce6685fbb"",
""path"": ""/rightArrow"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Move"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""b9d8e2f3-4a5c-4b6d-8e7f-901234567890"",
""path"": ""/c"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Jump"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""9f28cd37-d35c-4f36-8af0-a0020d508486"",
""path"": ""/z"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Punch"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""43e56be6-df9b-4845-ba12-cd109ac1ffa0"",
""path"": ""/x"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Kick"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""8bca2399-c8c8-41e8-a3b2-08267c8bc571"",
""path"": ""/leftShift"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Dash"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""df4d72ec-012c-413a-862d-1a36d2c5b69a"",
""path"": ""/leftCtrl"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Roll"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""4c51b02e-aa8f-4242-81e4-ab1c72a512df"",
""path"": ""/space"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""BackDash"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""8635811d-29ac-4047-a3f7-d7a72f7e362e"",
""path"": ""/g"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""GrabSmash"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b1c2d3e4-1111-1111-1111-111111111111"",
""path"": ""/1"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""WeaponSlot1"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b1c2d3e4-2222-2222-2222-222222222222"",
""path"": ""/2"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""WeaponSlot2"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""b1c2d3e4-3333-3333-3333-333333333333"",
""path"": ""/3"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""WeaponSlot3"",
""isComposite"": false,
""isPartOfComposite"": false
}
]
}
],
""controlSchemes"": []
}");
// Player
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
m_Player_Jump = m_Player.FindAction("Jump", throwIfNotFound: true);
m_Player_Punch = m_Player.FindAction("Punch", throwIfNotFound: true);
m_Player_Kick = m_Player.FindAction("Kick", throwIfNotFound: true);
m_Player_Dash = m_Player.FindAction("Dash", throwIfNotFound: true);
m_Player_Roll = m_Player.FindAction("Roll", throwIfNotFound: true);
m_Player_BackDash = m_Player.FindAction("BackDash", throwIfNotFound: true);
m_Player_GrabSmash = m_Player.FindAction("GrabSmash", throwIfNotFound: true);
m_Player_WeaponSlot1 = m_Player.FindAction("WeaponSlot1", throwIfNotFound: true);
m_Player_WeaponSlot2 = m_Player.FindAction("WeaponSlot2", throwIfNotFound: true);
m_Player_WeaponSlot3 = m_Player.FindAction("WeaponSlot3", throwIfNotFound: true);
}
~@GameInput()
{
UnityEngine.Debug.Assert(!m_Player.enabled, "This will cause a leak and performance issues, GameInput.Player.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);
}
// Player
private readonly InputActionMap m_Player;
private List m_PlayerActionsCallbackInterfaces = new List();
private readonly InputAction m_Player_Move;
private readonly InputAction m_Player_Jump;
private readonly InputAction m_Player_Punch;
private readonly InputAction m_Player_Kick;
private readonly InputAction m_Player_Dash;
private readonly InputAction m_Player_Roll;
private readonly InputAction m_Player_BackDash;
private readonly InputAction m_Player_GrabSmash;
private readonly InputAction m_Player_WeaponSlot1;
private readonly InputAction m_Player_WeaponSlot2;
private readonly InputAction m_Player_WeaponSlot3;
///
/// Provides access to input actions defined in input action map "Player".
///
public struct PlayerActions
{
private @GameInput m_Wrapper;
///
/// Construct a new instance of the input action map wrapper class.
///
public PlayerActions(@GameInput wrapper) { m_Wrapper = wrapper; }
///
/// Provides access to the underlying input action "Player/Move".
///
public InputAction @Move => m_Wrapper.m_Player_Move;
///
/// Provides access to the underlying input action "Player/Jump".
///
public InputAction @Jump => m_Wrapper.m_Player_Jump;
///
/// Provides access to the underlying input action "Player/Punch".
///
public InputAction @Punch => m_Wrapper.m_Player_Punch;
///
/// Provides access to the underlying input action "Player/Kick".
///
public InputAction @Kick => m_Wrapper.m_Player_Kick;
///
/// Provides access to the underlying input action "Player/Dash".
///
public InputAction @Dash => m_Wrapper.m_Player_Dash;
///
/// Provides access to the underlying input action "Player/Roll".
///
public InputAction @Roll => m_Wrapper.m_Player_Roll;
///
/// Provides access to the underlying input action "Player/BackDash".
///
public InputAction @BackDash => m_Wrapper.m_Player_BackDash;
///
/// Provides access to the underlying input action "Player/GrabSmash".
///
public InputAction @GrabSmash => m_Wrapper.m_Player_GrabSmash;
///
/// Provides access to the underlying input action "Player/WeaponSlot1".
///
public InputAction @WeaponSlot1 => m_Wrapper.m_Player_WeaponSlot1;
///
/// Provides access to the underlying input action "Player/WeaponSlot2".
///
public InputAction @WeaponSlot2 => m_Wrapper.m_Player_WeaponSlot2;
///
/// Provides access to the underlying input action "Player/WeaponSlot3".
///
public InputAction @WeaponSlot3 => m_Wrapper.m_Player_WeaponSlot3;
///
/// Provides access to the underlying input action map instance.
///
public InputActionMap Get() { return m_Wrapper.m_Player; }
///
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(PlayerActions 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(IPlayerActions instance)
{
if (instance == null || m_Wrapper.m_PlayerActionsCallbackInterfaces.Contains(instance)) return;
m_Wrapper.m_PlayerActionsCallbackInterfaces.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;
@Punch.started += instance.OnPunch;
@Punch.performed += instance.OnPunch;
@Punch.canceled += instance.OnPunch;
@Kick.started += instance.OnKick;
@Kick.performed += instance.OnKick;
@Kick.canceled += instance.OnKick;
@Dash.started += instance.OnDash;
@Dash.performed += instance.OnDash;
@Dash.canceled += instance.OnDash;
@Roll.started += instance.OnRoll;
@Roll.performed += instance.OnRoll;
@Roll.canceled += instance.OnRoll;
@BackDash.started += instance.OnBackDash;
@BackDash.performed += instance.OnBackDash;
@BackDash.canceled += instance.OnBackDash;
@GrabSmash.started += instance.OnGrabSmash;
@GrabSmash.performed += instance.OnGrabSmash;
@GrabSmash.canceled += instance.OnGrabSmash;
@WeaponSlot1.started += instance.OnWeaponSlot1;
@WeaponSlot1.performed += instance.OnWeaponSlot1;
@WeaponSlot1.canceled += instance.OnWeaponSlot1;
@WeaponSlot2.started += instance.OnWeaponSlot2;
@WeaponSlot2.performed += instance.OnWeaponSlot2;
@WeaponSlot2.canceled += instance.OnWeaponSlot2;
@WeaponSlot3.started += instance.OnWeaponSlot3;
@WeaponSlot3.performed += instance.OnWeaponSlot3;
@WeaponSlot3.canceled += instance.OnWeaponSlot3;
}
///
/// 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(IPlayerActions 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;
@Punch.started -= instance.OnPunch;
@Punch.performed -= instance.OnPunch;
@Punch.canceled -= instance.OnPunch;
@Kick.started -= instance.OnKick;
@Kick.performed -= instance.OnKick;
@Kick.canceled -= instance.OnKick;
@Dash.started -= instance.OnDash;
@Dash.performed -= instance.OnDash;
@Dash.canceled -= instance.OnDash;
@Roll.started -= instance.OnRoll;
@Roll.performed -= instance.OnRoll;
@Roll.canceled -= instance.OnRoll;
@BackDash.started -= instance.OnBackDash;
@BackDash.performed -= instance.OnBackDash;
@BackDash.canceled -= instance.OnBackDash;
@GrabSmash.started -= instance.OnGrabSmash;
@GrabSmash.performed -= instance.OnGrabSmash;
@GrabSmash.canceled -= instance.OnGrabSmash;
@WeaponSlot1.started -= instance.OnWeaponSlot1;
@WeaponSlot1.performed -= instance.OnWeaponSlot1;
@WeaponSlot1.canceled -= instance.OnWeaponSlot1;
@WeaponSlot2.started -= instance.OnWeaponSlot2;
@WeaponSlot2.performed -= instance.OnWeaponSlot2;
@WeaponSlot2.canceled -= instance.OnWeaponSlot2;
@WeaponSlot3.started -= instance.OnWeaponSlot3;
@WeaponSlot3.performed -= instance.OnWeaponSlot3;
@WeaponSlot3.canceled -= instance.OnWeaponSlot3;
}
///
/// Unregisters and unregisters all input action callbacks via .
///
///
public void RemoveCallbacks(IPlayerActions instance)
{
if (m_Wrapper.m_PlayerActionsCallbackInterfaces.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(IPlayerActions instance)
{
foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
///
/// Provides a new instance referencing this action map.
///
public PlayerActions @Player => new PlayerActions(this);
///
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Player" which allows adding and removing callbacks.
///
///
///
public interface IPlayerActions
{
///
/// 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 "Punch" is either , or .
///
///
///
///
void OnPunch(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Kick" is either , or .
///
///
///
///
void OnKick(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Dash" is either , or .
///
///
///
///
void OnDash(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "Roll" is either , or .
///
///
///
///
void OnRoll(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "BackDash" is either , or .
///
///
///
///
void OnBackDash(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "GrabSmash" is either , or .
///
///
///
///
void OnGrabSmash(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "WeaponSlot1" is either , or .
///
///
///
///
void OnWeaponSlot1(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "WeaponSlot2" is either , or .
///
///
///
///
void OnWeaponSlot2(InputAction.CallbackContext context);
///
/// Method invoked when associated input action "WeaponSlot3" is either , or .
///
///
///
///
void OnWeaponSlot3(InputAction.CallbackContext context);
}
}