// GENERATED AUTOMATICALLY FROM 'Assets/Scripts/Input/Actions.inputactions' using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public class @Actions : IInputActionCollection, IDisposable { public InputActionAsset asset { get; } public @Actions() { asset = InputActionAsset.FromJson(@"{ ""name"": ""Actions"", ""maps"": [ { ""name"": ""Menu"", ""id"": ""a688cdce-5103-43fc-91bd-e79326009be7"", ""actions"": [ { ""name"": ""Movement"", ""type"": ""Button"", ""id"": ""423b6ccf-e41b-48d7-be8c-3618daf06e40"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Accept"", ""type"": ""PassThrough"", ""id"": ""7347236c-5352-4922-8fc7-5478a0d8fed7"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Press"" }, { ""name"": ""Cancel"", ""type"": ""PassThrough"", ""id"": ""f21b6325-dc2e-47cb-ac39-e0411f069a80"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Press"" } ], ""bindings"": [ { ""name"": ""2D Vector"", ""id"": ""dcf5bcd8-1e84-4867-b79f-99c17b5063b5"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""a4f4bc3a-0827-4d11-a873-26e3e3b3e741"", ""path"": ""<Gamepad>/leftStick/up"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""d26a539b-c675-4f72-8472-ef6cdbff36d9"", ""path"": ""<Gamepad>/leftStick/down"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""49808360-b961-4724-8abc-d7a83d13a31f"", ""path"": ""<Gamepad>/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""e1b83b1e-5051-49cc-b9f2-cb40bcdef71f"", ""path"": ""<Gamepad>/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""WASD"", ""id"": ""6b02e962-f0ef-4994-a90f-616bd484a546"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""0e5c6ae5-2c21-4e06-9a64-d2207800181c"", ""path"": ""<Keyboard>/w"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""2244b247-8c5b-4b13-b242-90fd57bdf583"", ""path"": ""<Keyboard>/s"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""35029f25-e01e-4930-a530-10f1d258a745"", ""path"": ""<Keyboard>/a"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""76912cb0-4c25-41ad-8a8a-cc328544dee0"", ""path"": ""<Keyboard>/d"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""Arrows"", ""id"": ""d32e6378-37ed-4edb-a375-66a141f41dd0"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""61d17b8a-2f91-4466-a073-bf34f7a47855"", ""path"": ""<Keyboard>/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""c756990a-4d73-4cb9-a845-f91eb289c8fc"", ""path"": ""<Keyboard>/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""9479eacb-a19a-4af8-8610-679e22de2fd3"", ""path"": ""<Keyboard>/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""c49946da-d73d-475e-a1c4-42c3e9a3c9ab"", ""path"": ""<Keyboard>/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""cb23efff-9286-4402-b533-5a59ffa30c97"", ""path"": ""<Gamepad>/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Accept"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""c527208f-daca-4eee-83de-811a9b38d228"", ""path"": ""<Keyboard>/e"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Accept"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""80b029e2-fa4c-434a-b378-7f17ebd21265"", ""path"": ""<Keyboard>/enter"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Accept"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b6ecf8a7-2c90-4d55-88b5-1f87eebdd8a1"", ""path"": ""<Gamepad>/buttonEast"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Cancel"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""dc393e0f-6d26-4bc0-b900-f29572db7e3f"", ""path"": ""<Keyboard>/backspace"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Cancel"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""cbc8924e-f7eb-4be1-81f6-36bf4fbeba47"", ""path"": ""<Keyboard>/q"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Cancel"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""Gameplay"", ""id"": ""81b204ca-ec2b-4176-a331-61d6cd18ce25"", ""actions"": [ { ""name"": ""Movement"", ""type"": ""Button"", ""id"": ""2e866709-8548-46eb-9b4c-1d23d28ffa2b"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """" }, { ""name"": ""Pause"", ""type"": ""PassThrough"", ""id"": ""727d6991-de36-4391-9eeb-2b6bc8cd7711"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": ""Press"" } ], ""bindings"": [ { ""name"": ""2D Vector"", ""id"": ""b63f0470-a60c-4ad5-853a-6edd438a5b0a"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""afd6a4a3-d8c5-48ba-a4db-acac713720ef"", ""path"": ""<Gamepad>/leftStick/up"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""61968624-ec8e-4210-bff2-8b35e8d3630a"", ""path"": ""<Gamepad>/leftStick/down"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""925a59ee-bef4-40cf-9d76-2ba90f870cc3"", ""path"": ""<Gamepad>/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""4f442103-2d25-40e2-8858-110f08900b69"", ""path"": ""<Gamepad>/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""WASD"", ""id"": ""92acd437-803e-4e26-ab03-94c9e3b9ff7e"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Movement"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""671f6142-b406-4cd2-b75f-32eb5de438f4"", ""path"": ""<Keyboard>/w"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""f6ed9f49-7789-403d-987e-01931117924e"", ""path"": ""<Keyboard>/s"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""33aa530e-a2e9-4dd3-b832-3a4ef5904427"", ""path"": ""<Keyboard>/a"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""d7c524a0-6402-42c3-bf3b-c5408dad2e64"", ""path"": ""<Keyboard>/d"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Movement"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""12a8be72-54b6-44e2-a4e8-f5e3c09be652"", ""path"": ""<Gamepad>/start"", ""interactions"": """", ""processors"": """", ""groups"": ""Controller"", ""action"": ""Pause"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""294dabc7-eff5-4727-8ce1-796cab5dc178"", ""path"": ""<Keyboard>/escape"", ""interactions"": """", ""processors"": """", ""groups"": ""PC"", ""action"": ""Pause"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [ { ""name"": ""Controller"", ""bindingGroup"": ""Controller"", ""devices"": [ { ""devicePath"": ""<Gamepad>"", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""PC"", ""bindingGroup"": ""PC"", ""devices"": [ { ""devicePath"": ""<Keyboard>"", ""isOptional"": false, ""isOR"": false }, { ""devicePath"": ""<Mouse>"", ""isOptional"": true, ""isOR"": false } ] } ] }"); // Menu m_Menu = asset.FindActionMap("Menu", throwIfNotFound: true); m_Menu_Movement = m_Menu.FindAction("Movement", throwIfNotFound: true); m_Menu_Accept = m_Menu.FindAction("Accept", throwIfNotFound: true); m_Menu_Cancel = m_Menu.FindAction("Cancel", throwIfNotFound: true); // Gameplay m_Gameplay = asset.FindActionMap("Gameplay", throwIfNotFound: true); m_Gameplay_Movement = m_Gameplay.FindAction("Movement", throwIfNotFound: true); m_Gameplay_Pause = m_Gameplay.FindAction("Pause", 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(); } // Menu private readonly InputActionMap m_Menu; private IMenuActions m_MenuActionsCallbackInterface; private readonly InputAction m_Menu_Movement; private readonly InputAction m_Menu_Accept; private readonly InputAction m_Menu_Cancel; public struct MenuActions { private @Actions m_Wrapper; public MenuActions(@Actions wrapper) { m_Wrapper = wrapper; } public InputAction @Movement => m_Wrapper.m_Menu_Movement; public InputAction @Accept => m_Wrapper.m_Menu_Accept; public InputAction @Cancel => m_Wrapper.m_Menu_Cancel; public InputActionMap Get() { return m_Wrapper.m_Menu; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(MenuActions set) { return set.Get(); } public void SetCallbacks(IMenuActions instance) { if (m_Wrapper.m_MenuActionsCallbackInterface != null) { @Movement.started -= m_Wrapper.m_MenuActionsCallbackInterface.OnMovement; @Movement.performed -= m_Wrapper.m_MenuActionsCallbackInterface.OnMovement; @Movement.canceled -= m_Wrapper.m_MenuActionsCallbackInterface.OnMovement; @Accept.started -= m_Wrapper.m_MenuActionsCallbackInterface.OnAccept; @Accept.performed -= m_Wrapper.m_MenuActionsCallbackInterface.OnAccept; @Accept.canceled -= m_Wrapper.m_MenuActionsCallbackInterface.OnAccept; @Cancel.started -= m_Wrapper.m_MenuActionsCallbackInterface.OnCancel; @Cancel.performed -= m_Wrapper.m_MenuActionsCallbackInterface.OnCancel; @Cancel.canceled -= m_Wrapper.m_MenuActionsCallbackInterface.OnCancel; } m_Wrapper.m_MenuActionsCallbackInterface = instance; if (instance != null) { @Movement.started += instance.OnMovement; @Movement.performed += instance.OnMovement; @Movement.canceled += instance.OnMovement; @Accept.started += instance.OnAccept; @Accept.performed += instance.OnAccept; @Accept.canceled += instance.OnAccept; @Cancel.started += instance.OnCancel; @Cancel.performed += instance.OnCancel; @Cancel.canceled += instance.OnCancel; } } } public MenuActions @Menu => new MenuActions(this); // Gameplay private readonly InputActionMap m_Gameplay; private IGameplayActions m_GameplayActionsCallbackInterface; private readonly InputAction m_Gameplay_Movement; private readonly InputAction m_Gameplay_Pause; public struct GameplayActions { private @Actions m_Wrapper; public GameplayActions(@Actions wrapper) { m_Wrapper = wrapper; } public InputAction @Movement => m_Wrapper.m_Gameplay_Movement; public InputAction @Pause => m_Wrapper.m_Gameplay_Pause; public InputActionMap Get() { return m_Wrapper.m_Gameplay; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(GameplayActions set) { return set.Get(); } public void SetCallbacks(IGameplayActions instance) { if (m_Wrapper.m_GameplayActionsCallbackInterface != null) { @Movement.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMovement; @Movement.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMovement; @Movement.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnMovement; @Pause.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnPause; @Pause.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnPause; @Pause.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnPause; } m_Wrapper.m_GameplayActionsCallbackInterface = instance; if (instance != null) { @Movement.started += instance.OnMovement; @Movement.performed += instance.OnMovement; @Movement.canceled += instance.OnMovement; @Pause.started += instance.OnPause; @Pause.performed += instance.OnPause; @Pause.canceled += instance.OnPause; } } } public GameplayActions @Gameplay => new GameplayActions(this); private int m_ControllerSchemeIndex = -1; public InputControlScheme ControllerScheme { get { if (m_ControllerSchemeIndex == -1) m_ControllerSchemeIndex = asset.FindControlSchemeIndex("Controller"); return asset.controlSchemes[m_ControllerSchemeIndex]; } } private int m_PCSchemeIndex = -1; public InputControlScheme PCScheme { get { if (m_PCSchemeIndex == -1) m_PCSchemeIndex = asset.FindControlSchemeIndex("PC"); return asset.controlSchemes[m_PCSchemeIndex]; } } public interface IMenuActions { void OnMovement(InputAction.CallbackContext context); void OnAccept(InputAction.CallbackContext context); void OnCancel(InputAction.CallbackContext context); } public interface IGameplayActions { void OnMovement(InputAction.CallbackContext context); void OnPause(InputAction.CallbackContext context); } }