| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
- // version 1.5.1
- // from Assets/GFMain/Scripts/AOT/InputSystem/InputCommon.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;
- namespace GFMain
- {
- public partial class @InputCommon: IInputActionCollection2, IDisposable
- {
- public InputActionAsset asset { get; }
- public @InputCommon()
- {
- asset = InputActionAsset.FromJson(@"{
- ""name"": ""InputCommon"",
- ""maps"": [
- {
- ""name"": ""Common"",
- ""id"": ""5d005a13-6210-4f4b-a073-791e301875a6"",
- ""actions"": [
- {
- ""name"": ""OpenDebug"",
- ""type"": ""Button"",
- ""id"": ""7856085b-2043-4b07-bb9f-a46e974b491a"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- }
- ],
- ""bindings"": [
- {
- ""name"": """",
- ""id"": ""19cfa1e9-a169-4a83-9358-6d06f8dc2655"",
- ""path"": ""<Keyboard>/f2"",
- ""interactions"": ""MultiTap(tapCount=5)"",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""OpenDebug"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- }
- ]
- }
- ],
- ""controlSchemes"": []
- }");
- // Common
- m_Common = asset.FindActionMap("Common", throwIfNotFound: true);
- m_Common_OpenDebug = m_Common.FindAction("OpenDebug", throwIfNotFound: true);
- }
- public void Dispose()
- {
- UnityEngine.Object.Destroy(asset);
- }
- public InputBinding? bindingMask
- {
- get => asset.bindingMask;
- set => asset.bindingMask = value;
- }
- public ReadOnlyArray<InputDevice>? devices
- {
- get => asset.devices;
- set => asset.devices = value;
- }
- public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
- public bool Contains(InputAction action)
- {
- return asset.Contains(action);
- }
- public IEnumerator<InputAction> GetEnumerator()
- {
- return asset.GetEnumerator();
- }
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetEnumerator();
- }
- public void Enable()
- {
- asset.Enable();
- }
- public void Disable()
- {
- asset.Disable();
- }
- public IEnumerable<InputBinding> 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);
- }
- // Common
- private readonly InputActionMap m_Common;
- private List<ICommonActions> m_CommonActionsCallbackInterfaces = new List<ICommonActions>();
- private readonly InputAction m_Common_OpenDebug;
- public struct CommonActions
- {
- private @InputCommon m_Wrapper;
- public CommonActions(@InputCommon wrapper) { m_Wrapper = wrapper; }
- public InputAction @OpenDebug => m_Wrapper.m_Common_OpenDebug;
- public InputActionMap Get() { return m_Wrapper.m_Common; }
- public void Enable() { Get().Enable(); }
- public void Disable() { Get().Disable(); }
- public bool enabled => Get().enabled;
- public static implicit operator InputActionMap(CommonActions set) { return set.Get(); }
- public void AddCallbacks(ICommonActions instance)
- {
- if (instance == null || m_Wrapper.m_CommonActionsCallbackInterfaces.Contains(instance)) return;
- m_Wrapper.m_CommonActionsCallbackInterfaces.Add(instance);
- @OpenDebug.started += instance.OnOpenDebug;
- @OpenDebug.performed += instance.OnOpenDebug;
- @OpenDebug.canceled += instance.OnOpenDebug;
- }
- private void UnregisterCallbacks(ICommonActions instance)
- {
- @OpenDebug.started -= instance.OnOpenDebug;
- @OpenDebug.performed -= instance.OnOpenDebug;
- @OpenDebug.canceled -= instance.OnOpenDebug;
- }
- public void RemoveCallbacks(ICommonActions instance)
- {
- if (m_Wrapper.m_CommonActionsCallbackInterfaces.Remove(instance))
- UnregisterCallbacks(instance);
- }
- public void SetCallbacks(ICommonActions instance)
- {
- foreach (var item in m_Wrapper.m_CommonActionsCallbackInterfaces)
- UnregisterCallbacks(item);
- m_Wrapper.m_CommonActionsCallbackInterfaces.Clear();
- AddCallbacks(instance);
- }
- }
- public CommonActions @Common => new CommonActions(this);
- public interface ICommonActions
- {
- void OnOpenDebug(InputAction.CallbackContext context);
- }
- }
- }
|