2026-06-18 16:37:02 +01:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.19.0
// from Assets/Synty/AnimationBaseLocomotion/Samples/Scripts/InputSystem/Controls.inputactions
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System ;
using System.Collections ;
using System.Collections.Generic ;
using UnityEngine.InputSystem ;
using UnityEngine.InputSystem.Utilities ;
/// <summary>
/// Provides programmatic access to <see cref="InputActionAsset" />, <see cref="InputActionMap" />, <see cref="InputAction" /> and <see cref="InputControlScheme" /> instances defined in asset "Assets/Synty/AnimationBaseLocomotion/Samples/Scripts/InputSystem/Controls.inputactions".
/// </summary>
/// <remarks>
/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified.
/// </remarks>
/// <example>
/// <code>
/// 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
/// }
/// </code>
/// </example>
public partial class @Controls : IInputActionCollection2 , IDisposable
{
/// <summary>
/// Provides access to the underlying asset instance.
/// </summary>
public InputActionAsset asset { get ; }
/// <summary>
/// Constructs a new instance.
/// </summary>
public @Controls ( )
{
asset = InputActionAsset . FromJson ( @ "{
"" version "" : 1 ,
"" name "" : "" Controls "" ,
"" maps "" : [
{
"" name "" : "" Player "" ,
"" id "" : "" 2 c49ff3e - ee54 - 41d b - a904 - 9d 6 a34278604 "" ,
"" actions "" : [
{
"" name "" : "" Jump "" ,
"" type "" : "" Button "" ,
"" id "" : "" 9 c4baf7e - dd4a - 45 cb - b8b5 - 518f 23 ef2f3f "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Move "" ,
"" type "" : "" Value "" ,
"" id "" : "" 105f 8 ab6 - 711 b - 48 c9 - afe5 - 81516e9 a23b4 "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Look "" ,
"" type "" : "" Value "" ,
"" id "" : "" c7314668 - 554f - 4d 3e-9860 - 066f 89d 79485 "" ,
"" expectedControlType "" : "" Vector2 "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : true
} ,
{
"" name "" : "" Sprint "" ,
"" type "" : "" Button "" ,
"" id "" : "" 8 a1c0259 - 4f f4 - 47 ce - 8 b18 - 87f a6457e43a "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" ToggleWalk "" ,
"" type "" : "" Button "" ,
"" id "" : "" 81 a5840a - 1451 - 4 af7 - b390 - f2f1e3099eb9 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Aim "" ,
"" type "" : "" Button "" ,
"" id "" : "" e440026d - b50a - 4d f1 - ba03 - 48302673e522 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Crouch "" ,
"" type "" : "" Button "" ,
"" id "" : "" 0 a2dd0bc - e6ed - 4515 - b034 - 169169050 ceb "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" LockOn "" ,
"" type "" : "" Button "" ,
"" id "" : "" a87fb759 - f0bc - 4 a42 - 9e92 - 7f 6 bdec29e48 "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Attack "" ,
"" type "" : "" Button "" ,
"" id "" : "" de77d5e0 - 9f cc - 4f db - a221 - b03fb4064ffd "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
2026-06-19 16:20:36 +01:00
} ,
{
"" name "" : "" Repair "" ,
"" type "" : "" Button "" ,
"" id "" : "" ebf1fc31 - ad4a - 479 b - 89 a7 - 8002e36f 95 bf "" ,
"" expectedControlType "" : "" "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
2026-06-18 16:37:02 +01:00
}
] ,
"" bindings "" : [
{
"" name "" : "" "" ,
"" id "" : "" 4973493d - c628 - 41 b1 - 8283 - 30 a38a35726a "" ,
"" path "" : "" < Keyboard > / space "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Jump "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 42025 cc3 - 3d 37 - 4 b12 - a885 - 8 eca8f556f97 "" ,
"" path "" : "" < Gamepad > / buttonSouth "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Jump "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 1 ab14112 - e754 - 49 ce - 9d 7 a - 515 a9ab24396 "" ,
"" path "" : "" < Gamepad > / leftStick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" 2D Vector WASD "" ,
"" id "" : "" d68d1f5f - 0e48 - 4 c97 - 943 a - 5200d 814 ba4c "" ,
"" path "" : "" 2D Vector "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 4601556f - fe76 - 459e-833 c - 8424f 28 ccfaf "" ,
"" path "" : "" < Keyboard > / w "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 0758e0d 3 - c53f - 4406 - b0c5 - 6 b65928f6495 "" ,
"" path "" : "" < Keyboard > / s "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" 34 ab6656 - 510 b - 4543 - a02c - 457d 9d 87d 373 "" ,
"" path "" : "" < Keyboard > / a "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 861 a3c64 - a95a - 4f b2 - 90f 1 - 2f 7f c3994ebd "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" 2D Vector Arrowkeys "" ,
"" id "" : "" cd992d5a - 4846 - 4403 - aad0 - 3 c9049a191e5 "" ,
"" path "" : "" 2D Vector "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" up "" ,
"" id "" : "" 35439d c7 - 4 c62 - 4730 - a600 - 57 bd079992aa "" ,
"" path "" : "" < Keyboard > / upArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" down "" ,
"" id "" : "" 8 a40e7f9 - 06f 6 - 4f ea - 82 c8 - a9bbfa9f3a45 "" ,
"" path "" : "" < Keyboard > / downArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" left "" ,
"" id "" : "" a529365f - 0079 - 4 cdd - ad19 - c2176ebc12a7 "" ,
"" path "" : "" < Keyboard > / leftArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" right "" ,
"" id "" : "" 032d 5647 - 9197 - 4 ab1 - b0ed - 73f 9 c573abaa "" ,
"" path "" : "" < Keyboard > / rightArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Move "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" "" ,
"" id "" : "" fd44343a - ca07 - 4f 0 a - 95d 7 - 29164 ac381f0 "" ,
"" path "" : "" < Mouse > / delta "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Look "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 8 a2bfa46 - 4 ead - 4 a8f - aac0 - c0bc4f585928 "" ,
"" path "" : "" < Gamepad > / rightStick "" ,
"" interactions "" : "" "" ,
"" processors "" : "" ScaleVector2 ( x = 4 , y = 4 ) "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Look "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 354 b4cd8 - 944 c - 4d 23 - 87 b4 - d26e6403b2a7 "" ,
"" path "" : "" < Keyboard > / shift "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Sprint "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 13547036 - 1d 58 - 45f 2 - a2d8 - c9f0706a8fb9 "" ,
"" path "" : "" < Gamepad > / rightShoulder "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Sprint "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" ab91ddfe - c482 - 4 b55 - aa59 - bf1974a526b3 "" ,
"" path "" : "" < Keyboard > / capsLock "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" ToggleWalk "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" b5d9ab6f - 92 ae - 4d 6 a - 85 ce - 20210 c1efe16 "" ,
"" path "" : "" < Gamepad > / leftStickPress "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" ToggleWalk "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 2d 594f 48 - 6585 - 4401 - 95f 6 - 10f 27 afb0d84 "" ,
"" path "" : "" < Mouse > / rightButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Aim "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 9f 00 b84c - 77 a0 - 4264 - 88 a7 - aa6ace188e6e "" ,
"" path "" : "" < Gamepad > / leftTrigger "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Aim "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 73 eda66d - 2118 - 4 a22 - 9d 70 - 18 cc9ea08e74 "" ,
"" path "" : "" < Keyboard > / ctrl "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" Crouch "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 78f acee1 - 242d - 43 a5 - b71f - 75 bfdb0ed6e1 "" ,
"" path "" : "" < Gamepad > / buttonEast "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" Crouch "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 9f 68216 e - e598 - 4037 - a000 - 2 ca8be91e0ba "" ,
"" path "" : "" < Mouse > / middleButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Keyboard and Mouse "" ,
"" action "" : "" LockOn "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" bab278b9 - 2663 - 41 cb - 9167 - ffb39759d9a9 "" ,
"" path "" : "" < Gamepad > / rightStickPress "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" Gamepad "" ,
"" action "" : "" LockOn "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 4194 b83a - b4c6 - 41 bd - a725 - 7425 bf85e416 "" ,
"" path "" : "" < Mouse > / leftButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard and Mouse "" ,
"" action "" : "" Attack "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" 06036358 - a299 - 402f - 98d 8 - 7 a37b311367f "" ,
"" path "" : "" < Gamepad > / rightTrigger "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Attack "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
2026-06-19 16:20:36 +01:00
} ,
{
"" name "" : "" "" ,
"" id "" : "" 627e81 c9 - a30c - 497f - bbed - cfdc79f3a0f8 "" ,
"" path "" : "" < Keyboard > / r "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Keyboard and Mouse "" ,
"" action "" : "" Repair "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" d59edd54 - 8f f7 - 49e2 - b568 - 6 b6983bc7e6a "" ,
"" path "" : "" < Gamepad > / buttonEast "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" ; Gamepad "" ,
"" action "" : "" Repair "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
2026-06-18 16:37:02 +01:00
}
]
}
] ,
"" controlSchemes "" : [
{
"" name "" : "" Keyboard and Mouse "" ,
"" bindingGroup "" : "" Keyboard and Mouse "" ,
"" devices "" : [
{
"" devicePath "" : "" < Keyboard > "" ,
"" isOptional "" : false ,
"" isOR "" : false
} ,
{
"" devicePath "" : "" < Mouse > "" ,
"" isOptional "" : false ,
"" isOR "" : false
}
]
} ,
{
"" name "" : "" Gamepad "" ,
"" bindingGroup "" : "" Gamepad "" ,
"" devices "" : [
{
"" devicePath "" : "" < DualShockGamepad > "" ,
"" isOptional "" : true ,
"" isOR "" : false
}
]
}
]
} ");
// Player
m_Player = asset . FindActionMap ( "Player" , throwIfNotFound : true ) ;
m_Player_Jump = m_Player . FindAction ( "Jump" , throwIfNotFound : true ) ;
m_Player_Move = m_Player . FindAction ( "Move" , throwIfNotFound : true ) ;
m_Player_Look = m_Player . FindAction ( "Look" , throwIfNotFound : true ) ;
m_Player_Sprint = m_Player . FindAction ( "Sprint" , throwIfNotFound : true ) ;
m_Player_ToggleWalk = m_Player . FindAction ( "ToggleWalk" , throwIfNotFound : true ) ;
m_Player_Aim = m_Player . FindAction ( "Aim" , throwIfNotFound : true ) ;
m_Player_Crouch = m_Player . FindAction ( "Crouch" , throwIfNotFound : true ) ;
m_Player_LockOn = m_Player . FindAction ( "LockOn" , throwIfNotFound : true ) ;
m_Player_Attack = m_Player . FindAction ( "Attack" , throwIfNotFound : true ) ;
2026-06-19 16:20:36 +01:00
m_Player_Repair = m_Player . FindAction ( "Repair" , throwIfNotFound : true ) ;
2026-06-18 16:37:02 +01:00
}
~ @Controls ( )
{
UnityEngine . Debug . Assert ( ! m_Player . enabled , "This will cause a leak and performance issues, Controls.Player.Disable() has not been called." ) ;
}
/// <summary>
/// Destroys this asset and all associated <see cref="InputAction"/> instances.
/// </summary>
public void Dispose ( )
{
UnityEngine . Object . Destroy ( asset ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindingMask" />
public InputBinding ? bindingMask
{
get = > asset . bindingMask ;
set = > asset . bindingMask = value ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.devices" />
public ReadOnlyArray < InputDevice > ? devices
{
get = > asset . devices ;
set = > asset . devices = value ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.controlSchemes" />
public ReadOnlyArray < InputControlScheme > controlSchemes = > asset . controlSchemes ;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Contains(InputAction)" />
public bool Contains ( InputAction action )
{
return asset . Contains ( action ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.GetEnumerator()" />
public IEnumerator < InputAction > GetEnumerator ( )
{
return asset . GetEnumerator ( ) ;
}
/// <inheritdoc cref="IEnumerable.GetEnumerator()" />
IEnumerator IEnumerable . GetEnumerator ( )
{
return GetEnumerator ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Enable()" />
public void Enable ( )
{
asset . Enable ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Disable()" />
public void Disable ( )
{
asset . Disable ( ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindings" />
public IEnumerable < InputBinding > bindings = > asset . bindings ;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindAction(string, bool)" />
public InputAction FindAction ( string actionNameOrId , bool throwIfNotFound = false )
{
return asset . FindAction ( actionNameOrId , throwIfNotFound ) ;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindBinding(InputBinding, out InputAction)" />
public int FindBinding ( InputBinding bindingMask , out InputAction action )
{
return asset . FindBinding ( bindingMask , out action ) ;
}
// Player
private readonly InputActionMap m_Player ;
private List < IPlayerActions > m_PlayerActionsCallbackInterfaces = new List < IPlayerActions > ( ) ;
private readonly InputAction m_Player_Jump ;
private readonly InputAction m_Player_Move ;
private readonly InputAction m_Player_Look ;
private readonly InputAction m_Player_Sprint ;
private readonly InputAction m_Player_ToggleWalk ;
private readonly InputAction m_Player_Aim ;
private readonly InputAction m_Player_Crouch ;
private readonly InputAction m_Player_LockOn ;
private readonly InputAction m_Player_Attack ;
2026-06-19 16:20:36 +01:00
private readonly InputAction m_Player_Repair ;
2026-06-18 16:37:02 +01:00
/// <summary>
/// Provides access to input actions defined in input action map "Player".
/// </summary>
public struct PlayerActions
{
private @Controls m_Wrapper ;
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
public PlayerActions ( @Controls wrapper ) { m_Wrapper = wrapper ; }
/// <summary>
/// Provides access to the underlying input action "Player/Jump".
/// </summary>
public InputAction @Jump = > m_Wrapper . m_Player_Jump ;
/// <summary>
/// Provides access to the underlying input action "Player/Move".
/// </summary>
public InputAction @Move = > m_Wrapper . m_Player_Move ;
/// <summary>
/// Provides access to the underlying input action "Player/Look".
/// </summary>
public InputAction @Look = > m_Wrapper . m_Player_Look ;
/// <summary>
/// Provides access to the underlying input action "Player/Sprint".
/// </summary>
public InputAction @Sprint = > m_Wrapper . m_Player_Sprint ;
/// <summary>
/// Provides access to the underlying input action "Player/ToggleWalk".
/// </summary>
public InputAction @ToggleWalk = > m_Wrapper . m_Player_ToggleWalk ;
/// <summary>
/// Provides access to the underlying input action "Player/Aim".
/// </summary>
public InputAction @Aim = > m_Wrapper . m_Player_Aim ;
/// <summary>
/// Provides access to the underlying input action "Player/Crouch".
/// </summary>
public InputAction @Crouch = > m_Wrapper . m_Player_Crouch ;
/// <summary>
/// Provides access to the underlying input action "Player/LockOn".
/// </summary>
public InputAction @LockOn = > m_Wrapper . m_Player_LockOn ;
/// <summary>
/// Provides access to the underlying input action "Player/Attack".
/// </summary>
public InputAction @Attack = > m_Wrapper . m_Player_Attack ;
/// <summary>
2026-06-19 16:20:36 +01:00
/// Provides access to the underlying input action "Player/Repair".
/// </summary>
public InputAction @Repair = > m_Wrapper . m_Player_Repair ;
/// <summary>
2026-06-18 16:37:02 +01:00
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get ( ) { return m_Wrapper . m_Player ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
public void Enable ( ) { Get ( ) . Enable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
public void Disable ( ) { Get ( ) . Disable ( ) ; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
public bool enabled = > Get ( ) . enabled ;
/// <summary>
/// Implicitly converts an <see ref="PlayerActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
public static implicit operator InputActionMap ( PlayerActions set ) { return set . Get ( ) ; }
/// <summary>
/// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <param name="instance">Callback instance.</param>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing.
/// </remarks>
/// <seealso cref="PlayerActions" />
public void AddCallbacks ( IPlayerActions instance )
{
if ( instance = = null | | m_Wrapper . m_PlayerActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_PlayerActionsCallbackInterfaces . Add ( instance ) ;
@Jump . started + = instance . OnJump ;
@Jump . performed + = instance . OnJump ;
@Jump . canceled + = instance . OnJump ;
@Move . started + = instance . OnMove ;
@Move . performed + = instance . OnMove ;
@Move . canceled + = instance . OnMove ;
@Look . started + = instance . OnLook ;
@Look . performed + = instance . OnLook ;
@Look . canceled + = instance . OnLook ;
@Sprint . started + = instance . OnSprint ;
@Sprint . performed + = instance . OnSprint ;
@Sprint . canceled + = instance . OnSprint ;
@ToggleWalk . started + = instance . OnToggleWalk ;
@ToggleWalk . performed + = instance . OnToggleWalk ;
@ToggleWalk . canceled + = instance . OnToggleWalk ;
@Aim . started + = instance . OnAim ;
@Aim . performed + = instance . OnAim ;
@Aim . canceled + = instance . OnAim ;
@Crouch . started + = instance . OnCrouch ;
@Crouch . performed + = instance . OnCrouch ;
@Crouch . canceled + = instance . OnCrouch ;
@LockOn . started + = instance . OnLockOn ;
@LockOn . performed + = instance . OnLockOn ;
@LockOn . canceled + = instance . OnLockOn ;
@Attack . started + = instance . OnAttack ;
@Attack . performed + = instance . OnAttack ;
@Attack . canceled + = instance . OnAttack ;
2026-06-19 16:20:36 +01:00
@Repair . started + = instance . OnRepair ;
@Repair . performed + = instance . OnRepair ;
@Repair . canceled + = instance . OnRepair ;
2026-06-18 16:37:02 +01:00
}
/// <summary>
/// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <remarks>
/// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects.
/// </remarks>
/// <seealso cref="PlayerActions" />
private void UnregisterCallbacks ( IPlayerActions instance )
{
@Jump . started - = instance . OnJump ;
@Jump . performed - = instance . OnJump ;
@Jump . canceled - = instance . OnJump ;
@Move . started - = instance . OnMove ;
@Move . performed - = instance . OnMove ;
@Move . canceled - = instance . OnMove ;
@Look . started - = instance . OnLook ;
@Look . performed - = instance . OnLook ;
@Look . canceled - = instance . OnLook ;
@Sprint . started - = instance . OnSprint ;
@Sprint . performed - = instance . OnSprint ;
@Sprint . canceled - = instance . OnSprint ;
@ToggleWalk . started - = instance . OnToggleWalk ;
@ToggleWalk . performed - = instance . OnToggleWalk ;
@ToggleWalk . canceled - = instance . OnToggleWalk ;
@Aim . started - = instance . OnAim ;
@Aim . performed - = instance . OnAim ;
@Aim . canceled - = instance . OnAim ;
@Crouch . started - = instance . OnCrouch ;
@Crouch . performed - = instance . OnCrouch ;
@Crouch . canceled - = instance . OnCrouch ;
@LockOn . started - = instance . OnLockOn ;
@LockOn . performed - = instance . OnLockOn ;
@LockOn . canceled - = instance . OnLockOn ;
@Attack . started - = instance . OnAttack ;
@Attack . performed - = instance . OnAttack ;
@Attack . canceled - = instance . OnAttack ;
2026-06-19 16:20:36 +01:00
@Repair . started - = instance . OnRepair ;
@Repair . performed - = instance . OnRepair ;
@Repair . canceled - = instance . OnRepair ;
2026-06-18 16:37:02 +01:00
}
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />.
/// </summary>
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
public void RemoveCallbacks ( IPlayerActions instance )
{
if ( m_Wrapper . m_PlayerActionsCallbackInterfaces . Remove ( instance ) )
UnregisterCallbacks ( instance ) ;
}
/// <summary>
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />.
/// </summary>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks.
/// </remarks>
/// <seealso cref="PlayerActions.AddCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.UnregisterCallbacks(IPlayerActions)" />
public void SetCallbacks ( IPlayerActions instance )
{
foreach ( var item in m_Wrapper . m_PlayerActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_PlayerActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
/// <summary>
/// Provides a new <see cref="PlayerActions" /> instance referencing this action map.
/// </summary>
public PlayerActions @Player = > new PlayerActions ( this ) ;
private int m_KeyboardandMouseSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme KeyboardandMouseScheme
{
get
{
if ( m_KeyboardandMouseSchemeIndex = = - 1 ) m_KeyboardandMouseSchemeIndex = asset . FindControlSchemeIndex ( "Keyboard and Mouse" ) ;
return asset . controlSchemes [ m_KeyboardandMouseSchemeIndex ] ;
}
}
private int m_GamepadSchemeIndex = - 1 ;
/// <summary>
/// Provides access to the input control scheme.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputControlScheme" />
public InputControlScheme GamepadScheme
{
get
{
if ( m_GamepadSchemeIndex = = - 1 ) m_GamepadSchemeIndex = asset . FindControlSchemeIndex ( "Gamepad" ) ;
return asset . controlSchemes [ m_GamepadSchemeIndex ] ;
}
}
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Player" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="PlayerActions.AddCallbacks(IPlayerActions)" />
/// <seealso cref="PlayerActions.RemoveCallbacks(IPlayerActions)" />
public interface IPlayerActions
{
/// <summary>
/// Method invoked when associated input action "Jump" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnJump ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Move" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnMove ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Look" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnLook ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Sprint" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSprint ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "ToggleWalk" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnToggleWalk ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Aim" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnAim ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Crouch" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnCrouch ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "LockOn" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnLockOn ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Attack" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnAttack ( InputAction . CallbackContext context ) ;
2026-06-19 16:20:36 +01:00
/// <summary>
/// Method invoked when associated input action "Repair" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnRepair ( InputAction . CallbackContext context ) ;
2026-06-18 16:37:02 +01:00
}
}