// GENERATED AUTOMATICALLY FROM 'Assets/Settings/PlayerInput.inputactions' using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public class @PlayerInput : IInputActionCollection, IDisposable { public InputActionAsset asset { get; } public @PlayerInput() { asset = InputActionAsset.FromJson(@"{ ""name"": ""PlayerInput"", ""maps"": [ { ""name"": ""Level"", ""id"": ""2bc60834-e09f-4981-affb-635cad7ffbfd"", ""actions"": [ { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""d1943f36-92e5-4335-a3f3-dd2e9e553ba6"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Jump"", ""type"": ""Button"", ""id"": ""e7ae7276-c64d-43bb-8719-ef3178e194a0"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" } ], ""bindings"": [ { ""name"": ""WASD"", ""id"": ""a50ea126-50e2-4f31-9167-ac757787a3e6"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""f7f33275-3f13-451c-8219-e1b34d39139c"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""73900688-a28e-40cf-ace2-05ad1b118594"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""c4e7f05b-1733-4e36-b752-6e0cf95f477e"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""f889cf6b-20aa-4169-a5d2-3bdae2e636e3"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""Arrow"", ""id"": ""9328658c-a019-4f76-b35b-5f023f9de6e0"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""16f6fb9d-eb25-445d-9313-fdf19a51b67c"", ""path"": ""/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""b8ce9a70-56c3-42da-9960-45d9791c903e"", ""path"": ""/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""e5dcf5e4-bff0-40ea-8b4f-dce1f8ed5156"", ""path"": ""/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""e4bf6a66-4a5d-4d05-baeb-e0db660132da"", ""path"": ""/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""67ec88e9-6ebb-4f16-9f4a-49d4f75af68e"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""fdb42cec-2a7c-452a-884c-b08443c104bb"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [] }"); // Level m_Level = asset.FindActionMap("Level", throwIfNotFound: true); m_Level_Move = m_Level.FindAction("Move", throwIfNotFound: true); m_Level_Jump = m_Level.FindAction("Jump", throwIfNotFound: true); } 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(); } // Level private readonly InputActionMap m_Level; private ILevelActions m_LevelActionsCallbackInterface; private readonly InputAction m_Level_Move; private readonly InputAction m_Level_Jump; public struct LevelActions { private @PlayerInput m_Wrapper; public LevelActions(@PlayerInput wrapper) { m_Wrapper = wrapper; } public InputAction @Move => m_Wrapper.m_Level_Move; public InputAction @Jump => m_Wrapper.m_Level_Jump; public InputActionMap Get() { return m_Wrapper.m_Level; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(LevelActions set) { return set.Get(); } public void SetCallbacks(ILevelActions instance) { if (m_Wrapper.m_LevelActionsCallbackInterface != null) { @Move.started -= m_Wrapper.m_LevelActionsCallbackInterface.OnMove; @Move.performed -= m_Wrapper.m_LevelActionsCallbackInterface.OnMove; @Move.canceled -= m_Wrapper.m_LevelActionsCallbackInterface.OnMove; @Jump.started -= m_Wrapper.m_LevelActionsCallbackInterface.OnJump; @Jump.performed -= m_Wrapper.m_LevelActionsCallbackInterface.OnJump; @Jump.canceled -= m_Wrapper.m_LevelActionsCallbackInterface.OnJump; } m_Wrapper.m_LevelActionsCallbackInterface = instance; if (instance != null) { @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; } } } public LevelActions @Level => new LevelActions(this); public interface ILevelActions { void OnMove(InputAction.CallbackContext context); void OnJump(InputAction.CallbackContext context); } }