2025-07-08 10:46:31 +00:00
//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.14.0
// from Assets/Plugins/Pixel Crushers/Dialogue System/Demo/Scenes/New Input System/DemoInputControls.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/Plugins/Pixel Crushers/Dialogue System/Demo/Scenes/New Input System/DemoInputControls.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 @DemoInputControls : IInputActionCollection2 , IDisposable
{
/// <summary>
/// Provides access to the underlying asset instance.
/// </summary>
public InputActionAsset asset { get ; }
/// <summary>
/// Constructs a new instance.
/// </summary>
public @DemoInputControls ( )
{
asset = InputActionAsset . FromJson ( @ "{
"" name "" : "" DemoInputControls "" ,
"" maps "" : [
{
"" name "" : "" DemoActionMap "" ,
"" id "" : "" 41649 a10 - fe04 - 42d c - b834 - 7 b0e6b8f6f8e "" ,
"" actions "" : [
{
"" name "" : "" Horizontal "" ,
"" type "" : "" Button "" ,
"" id "" : "" ef3929c6 - b315 - 4851 - 8f 3 e - ae170992d312 "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Vertical "" ,
"" type "" : "" Button "" ,
"" id "" : "" 74 bfe387 - c2ec - 4 a2e - 9 b81 - cd1c81ee069b "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
} ,
{
"" name "" : "" Fire1 "" ,
"" type "" : "" Button "" ,
"" id "" : "" 804 b48fe - 6035 - 4 b70 - a3b4 - 877f 04982d 7d "" ,
"" expectedControlType "" : "" Button "" ,
"" processors "" : "" "" ,
"" interactions "" : "" "" ,
"" initialStateCheck "" : false
}
] ,
"" bindings "" : [
{
"" name "" : "" A - D "" ,
"" id "" : "" 988324e0 - d947 - 4f a7 - 825f - 8 c22a3d5a9cd "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" 096967 ca - ee92 - 45 be - 9f 93 - fc5e3a4f109d "" ,
"" path "" : "" < Keyboard > / a "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" fbfca6ac - a78f - 40e1 - b53a - 27 a6570672c4 "" ,
"" path "" : "" < Keyboard > / d "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" Left - Right "" ,
"" id "" : "" 80 a8ea42 - 1404 - 4111 - b927 - 3d 3e018469d d "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" bd31e001 - 3 b16 - 4 b7e - 865 c - dc188bb61918 "" ,
"" path "" : "" < Keyboard > / leftArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" 98d c1df3 - 8219 - 4687 - a480 - 47 c71a1953df "" ,
"" path "" : "" < Keyboard > / rightArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Horizontal "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" S - W "" ,
"" id "" : "" 5f e719fc - bbc5 - 4091 - b418 - 91 c9a8699b54 "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" 5d 7 cca19 - 57 a8 - 4 a09 - ab88 - 7d cac3570e64 "" ,
"" path "" : "" < Keyboard > / s "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" 6 a6517d3 - 50 c7 - 4 c54 - b86e - 4d ec04733436 "" ,
"" path "" : "" < Keyboard > / w "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" Down - Up "" ,
"" id "" : "" 8 ae87a3c - 1197 - 4725 - baf0 - 9 be8746497fb "" ,
"" path "" : "" 1D Axis "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : true ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" negative "" ,
"" id "" : "" 5f 943101 - e079 - 4 c5e - 93f 1 - 1602 b61d2418 "" ,
"" path "" : "" < Keyboard > / downArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" positive "" ,
"" id "" : "" 8322 cbd3 - 368e-43 ed - b41e - f7ce51f1f189 "" ,
"" path "" : "" < Keyboard > / upArrow "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Vertical "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : true
} ,
{
"" name "" : "" "" ,
"" id "" : "" 6d e4a513 - 0301 - 4138 - 972 a - db7bccc7e316 "" ,
"" path "" : "" < Keyboard > / space "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Fire1 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
} ,
{
"" name "" : "" "" ,
"" id "" : "" e5a158a9 - f419 - 43d c - 912d - 97f 01d 68 c681 "" ,
"" path "" : "" < Mouse > / leftButton "" ,
"" interactions "" : "" "" ,
"" processors "" : "" "" ,
"" groups "" : "" "" ,
"" action "" : "" Fire1 "" ,
"" isComposite "" : false ,
"" isPartOfComposite "" : false
}
]
}
] ,
"" controlSchemes "" : [ ]
} ");
// DemoActionMap
m_DemoActionMap = asset . FindActionMap ( "DemoActionMap" , throwIfNotFound : true ) ;
m_DemoActionMap_Horizontal = m_DemoActionMap . FindAction ( "Horizontal" , throwIfNotFound : true ) ;
m_DemoActionMap_Vertical = m_DemoActionMap . FindAction ( "Vertical" , throwIfNotFound : true ) ;
m_DemoActionMap_Fire1 = m_DemoActionMap . FindAction ( "Fire1" , throwIfNotFound : true ) ;
}
~ @DemoInputControls ( )
{
UnityEngine . Debug . Assert ( ! m_DemoActionMap . enabled , "This will cause a leak and performance issues, DemoInputControls.DemoActionMap.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 ) ;
}
// DemoActionMap
private readonly InputActionMap m_DemoActionMap ;
private List < IDemoActionMapActions > m_DemoActionMapActionsCallbackInterfaces = new List < IDemoActionMapActions > ( ) ;
private readonly InputAction m_DemoActionMap_Horizontal ;
private readonly InputAction m_DemoActionMap_Vertical ;
private readonly InputAction m_DemoActionMap_Fire1 ;
/// <summary>
/// Provides access to input actions defined in input action map "DemoActionMap".
/// </summary>
public struct DemoActionMapActions
{
private @DemoInputControls m_Wrapper ;
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
public DemoActionMapActions ( @DemoInputControls wrapper ) { m_Wrapper = wrapper ; }
/// <summary>
/// Provides access to the underlying input action "DemoActionMap/Horizontal".
/// </summary>
public InputAction @Horizontal = > m_Wrapper . m_DemoActionMap_Horizontal ;
/// <summary>
/// Provides access to the underlying input action "DemoActionMap/Vertical".
/// </summary>
public InputAction @Vertical = > m_Wrapper . m_DemoActionMap_Vertical ;
/// <summary>
/// Provides access to the underlying input action "DemoActionMap/Fire1".
/// </summary>
public InputAction @Fire1 = > m_Wrapper . m_DemoActionMap_Fire1 ;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get ( ) { return m_Wrapper . m_DemoActionMap ; }
/// <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="DemoActionMapActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
public static implicit operator InputActionMap ( DemoActionMapActions 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="DemoActionMapActions" />
public void AddCallbacks ( IDemoActionMapActions instance )
{
if ( instance = = null | | m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . Contains ( instance ) ) return ;
m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . Add ( instance ) ;
@Horizontal . started + = instance . OnHorizontal ;
@Horizontal . performed + = instance . OnHorizontal ;
@Horizontal . canceled + = instance . OnHorizontal ;
@Vertical . started + = instance . OnVertical ;
@Vertical . performed + = instance . OnVertical ;
@Vertical . canceled + = instance . OnVertical ;
@Fire1 . started + = instance . OnFire1 ;
@Fire1 . performed + = instance . OnFire1 ;
@Fire1 . canceled + = instance . OnFire1 ;
}
/// <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="DemoActionMapActions" />
private void UnregisterCallbacks ( IDemoActionMapActions instance )
{
@Horizontal . started - = instance . OnHorizontal ;
@Horizontal . performed - = instance . OnHorizontal ;
@Horizontal . canceled - = instance . OnHorizontal ;
@Vertical . started - = instance . OnVertical ;
@Vertical . performed - = instance . OnVertical ;
@Vertical . canceled - = instance . OnVertical ;
@Fire1 . started - = instance . OnFire1 ;
@Fire1 . performed - = instance . OnFire1 ;
@Fire1 . canceled - = instance . OnFire1 ;
}
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="DemoActionMapActions.UnregisterCallbacks(IDemoActionMapActions)" />.
/// </summary>
/// <seealso cref="DemoActionMapActions.UnregisterCallbacks(IDemoActionMapActions)" />
public void RemoveCallbacks ( IDemoActionMapActions instance )
{
if ( m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . 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="DemoActionMapActions.AddCallbacks(IDemoActionMapActions)" />
/// <seealso cref="DemoActionMapActions.RemoveCallbacks(IDemoActionMapActions)" />
/// <seealso cref="DemoActionMapActions.UnregisterCallbacks(IDemoActionMapActions)" />
public void SetCallbacks ( IDemoActionMapActions instance )
{
foreach ( var item in m_Wrapper . m_DemoActionMapActionsCallbackInterfaces )
UnregisterCallbacks ( item ) ;
m_Wrapper . m_DemoActionMapActionsCallbackInterfaces . Clear ( ) ;
AddCallbacks ( instance ) ;
}
}
/// <summary>
/// Provides a new <see cref="DemoActionMapActions" /> instance referencing this action map.
/// </summary>
public DemoActionMapActions @DemoActionMap = > new DemoActionMapActions ( this ) ;
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "DemoActionMap" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="DemoActionMapActions.AddCallbacks(IDemoActionMapActions)" />
/// <seealso cref="DemoActionMapActions.RemoveCallbacks(IDemoActionMapActions)" />
public interface IDemoActionMapActions
{
/// <summary>
/// Method invoked when associated input action "Horizontal" 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 OnHorizontal ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Vertical" 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 OnVertical ( InputAction . CallbackContext context ) ;
/// <summary>
/// Method invoked when associated input action "Fire1" 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 OnFire1 ( InputAction . CallbackContext context ) ;
}
}