//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.11.2 // from Assets/Scripts/Managers/InputSystem/InputActions.inputactions // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.Collections; using System.Collections.Generic; using UnityEngine.InputSystem; using UnityEngine.InputSystem.Utilities; public partial class @InputActions: IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @InputActions() { asset = InputActionAsset.FromJson(@"{ ""name"": ""InputActions"", ""maps"": [ { ""name"": ""Player"", ""id"": ""277864dc-d6c8-485b-860f-70382a4eaa1e"", ""actions"": [ { ""name"": ""PointClick"", ""type"": ""PassThrough"", ""id"": ""fb720cef-8db9-45ea-94b8-34ee20907014"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""CancelClick"", ""type"": ""Button"", ""id"": ""a045f2ab-c0ec-42fc-9343-39839caf2ba4"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""105098b7-cb9c-4bea-a128-25fb122efd3d"", ""path"": ""/leftButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""PointClick"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""25a11c76-9acb-4544-bf8f-121962b3bf0b"", ""path"": ""/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""PointClick"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f43a2e12-ac25-49ce-95aa-43fd4e3754b2"", ""path"": ""/rightButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CancelClick"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""2c0753e9-8ef2-43b1-893f-d360ac7a34d3"", ""path"": ""/buttonWest"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""CancelClick"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""Camera"", ""id"": ""9f9ddc51-3eac-495d-9e72-48577c8c8f4b"", ""actions"": [ { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""42ed90e2-8e04-4002-a0a1-953fae8787ce"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Rotate"", ""type"": ""Value"", ""id"": ""d269ae49-9dbe-4e7c-9a80-1276e29898d8"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": ""Hold"", ""initialStateCheck"": true }, { ""name"": ""Zoom"", ""type"": ""Value"", ""id"": ""41d86dbc-39e0-4655-bc19-0eab9d5014a6"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true } ], ""bindings"": [ { ""name"": ""WASD"", ""id"": ""6a0891b5-2eec-48ad-850d-8f3d4589816b"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""2e6af5dd-f093-4f51-8df7-996b3d0b7d8e"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""ef522e93-330b-4a04-8be5-9d719c461129"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""4785db1d-a198-4f1b-a4a3-15825b7301fd"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""8fdeb47b-06d1-4535-9742-01aacdd7d7a1"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""JoystickMovement"", ""id"": ""f9008d1f-75ee-4b4a-a98d-45206b88b557"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""2162e77a-6f66-4396-9f4f-9b39efef2745"", ""path"": ""/leftStick/up"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""da83e5f4-d2ed-4d99-ae7e-5f27f5e7406e"", ""path"": ""/leftStick/down"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""267922e7-7a1e-471d-aad2-2346a6ad633c"", ""path"": ""/leftStick/left"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""77cf4330-c504-4f80-81c7-33dd924ad7c7"", ""path"": ""/leftStick/right"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""One Modifier"", ""id"": ""9e79ba5a-a365-470f-bd83-9f70fcf1ac4e"", ""path"": ""OneModifier"", ""interactions"": """", ""processors"": ""InvertVector2"", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""modifier"", ""id"": ""d894c4c2-d1c9-4a32-af41-c2c118c1debc"", ""path"": ""/rightButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""binding"", ""id"": ""b9a4dc3d-469f-435d-bf30-601363cbd4d2"", ""path"": ""/delta"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""One Modifier"", ""id"": ""921968f3-646e-4a34-ae14-f68c8034a225"", ""path"": ""OneModifier"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""modifier"", ""id"": ""36967647-01b0-4446-99ec-8467c5282970"", ""path"": ""/middleButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""binding"", ""id"": ""23cd5caa-3052-46e5-b888-9b7097cffc1b"", ""path"": ""/delta"", ""interactions"": """", ""processors"": ""NormalizeVector2"", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""2D Vector"", ""id"": ""1a1f22ab-5004-4133-844c-f3fd67792699"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""left"", ""id"": ""70123c0f-2726-4ff5-9a04-83d845177032"", ""path"": ""/e"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""81380d14-07da-4e3e-b74d-13a4bc2edc1d"", ""path"": ""/q"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Rotate"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""1a09948a-e3d8-4dc0-a257-95fa88786135"", ""path"": ""/scroll/y"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Zoom"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""UI"", ""id"": ""1ad3f945-dcff-4ae6-8a8b-3dd44bd67684"", ""actions"": [ { ""name"": ""Click"", ""type"": ""PassThrough"", ""id"": ""cddc5ce5-b808-4da9-b23b-f24a5126f838"", ""expectedControlType"": ""Button"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Point"", ""type"": ""PassThrough"", ""id"": ""8fe62ab9-ffe9-4edc-8a1a-e66417e475c8"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""a16b8b36-6be6-4d2c-85da-20d72f3c8e79"", ""path"": ""/leftButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Click"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""6013fd8b-2f52-4b27-8549-249c73d113b2"", ""path"": ""/{Point}"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Point"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [] }"); // Player m_Player = asset.FindActionMap("Player", throwIfNotFound: true); m_Player_PointClick = m_Player.FindAction("PointClick", throwIfNotFound: true); m_Player_CancelClick = m_Player.FindAction("CancelClick", throwIfNotFound: true); // Camera m_Camera = asset.FindActionMap("Camera", throwIfNotFound: true); m_Camera_Move = m_Camera.FindAction("Move", throwIfNotFound: true); m_Camera_Rotate = m_Camera.FindAction("Rotate", throwIfNotFound: true); m_Camera_Zoom = m_Camera.FindAction("Zoom", throwIfNotFound: true); // UI m_UI = asset.FindActionMap("UI", throwIfNotFound: true); m_UI_Click = m_UI.FindAction("Click", throwIfNotFound: true); m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true); } ~@InputActions() { UnityEngine.Debug.Assert(!m_Player.enabled, "This will cause a leak and performance issues, InputActions.Player.Disable() has not been called."); UnityEngine.Debug.Assert(!m_Camera.enabled, "This will cause a leak and performance issues, InputActions.Camera.Disable() has not been called."); UnityEngine.Debug.Assert(!m_UI.enabled, "This will cause a leak and performance issues, InputActions.UI.Disable() has not been called."); } 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(); } public IEnumerable 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); } // Player private readonly InputActionMap m_Player; private List m_PlayerActionsCallbackInterfaces = new List(); private readonly InputAction m_Player_PointClick; private readonly InputAction m_Player_CancelClick; public struct PlayerActions { private @InputActions m_Wrapper; public PlayerActions(@InputActions wrapper) { m_Wrapper = wrapper; } public InputAction @PointClick => m_Wrapper.m_Player_PointClick; public InputAction @CancelClick => m_Wrapper.m_Player_CancelClick; public InputActionMap Get() { return m_Wrapper.m_Player; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); } public void AddCallbacks(IPlayerActions instance) { if (instance == null || m_Wrapper.m_PlayerActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_PlayerActionsCallbackInterfaces.Add(instance); @PointClick.started += instance.OnPointClick; @PointClick.performed += instance.OnPointClick; @PointClick.canceled += instance.OnPointClick; @CancelClick.started += instance.OnCancelClick; @CancelClick.performed += instance.OnCancelClick; @CancelClick.canceled += instance.OnCancelClick; } private void UnregisterCallbacks(IPlayerActions instance) { @PointClick.started -= instance.OnPointClick; @PointClick.performed -= instance.OnPointClick; @PointClick.canceled -= instance.OnPointClick; @CancelClick.started -= instance.OnCancelClick; @CancelClick.performed -= instance.OnCancelClick; @CancelClick.canceled -= instance.OnCancelClick; } public void RemoveCallbacks(IPlayerActions instance) { if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(IPlayerActions instance) { foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public PlayerActions @Player => new PlayerActions(this); // Camera private readonly InputActionMap m_Camera; private List m_CameraActionsCallbackInterfaces = new List(); private readonly InputAction m_Camera_Move; private readonly InputAction m_Camera_Rotate; private readonly InputAction m_Camera_Zoom; public struct CameraActions { private @InputActions m_Wrapper; public CameraActions(@InputActions wrapper) { m_Wrapper = wrapper; } public InputAction @Move => m_Wrapper.m_Camera_Move; public InputAction @Rotate => m_Wrapper.m_Camera_Rotate; public InputAction @Zoom => m_Wrapper.m_Camera_Zoom; public InputActionMap Get() { return m_Wrapper.m_Camera; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(CameraActions set) { return set.Get(); } public void AddCallbacks(ICameraActions instance) { if (instance == null || m_Wrapper.m_CameraActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_CameraActionsCallbackInterfaces.Add(instance); @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Rotate.started += instance.OnRotate; @Rotate.performed += instance.OnRotate; @Rotate.canceled += instance.OnRotate; @Zoom.started += instance.OnZoom; @Zoom.performed += instance.OnZoom; @Zoom.canceled += instance.OnZoom; } private void UnregisterCallbacks(ICameraActions instance) { @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; @Rotate.started -= instance.OnRotate; @Rotate.performed -= instance.OnRotate; @Rotate.canceled -= instance.OnRotate; @Zoom.started -= instance.OnZoom; @Zoom.performed -= instance.OnZoom; @Zoom.canceled -= instance.OnZoom; } public void RemoveCallbacks(ICameraActions instance) { if (m_Wrapper.m_CameraActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(ICameraActions instance) { foreach (var item in m_Wrapper.m_CameraActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_CameraActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public CameraActions @Camera => new CameraActions(this); // UI private readonly InputActionMap m_UI; private List m_UIActionsCallbackInterfaces = new List(); private readonly InputAction m_UI_Click; private readonly InputAction m_UI_Point; public struct UIActions { private @InputActions m_Wrapper; public UIActions(@InputActions wrapper) { m_Wrapper = wrapper; } public InputAction @Click => m_Wrapper.m_UI_Click; public InputAction @Point => m_Wrapper.m_UI_Point; public InputActionMap Get() { return m_Wrapper.m_UI; } public void Enable() { Get().Enable(); } public void Disable() { Get().Disable(); } public bool enabled => Get().enabled; public static implicit operator InputActionMap(UIActions set) { return set.Get(); } public void AddCallbacks(IUIActions instance) { if (instance == null || m_Wrapper.m_UIActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_UIActionsCallbackInterfaces.Add(instance); @Click.started += instance.OnClick; @Click.performed += instance.OnClick; @Click.canceled += instance.OnClick; @Point.started += instance.OnPoint; @Point.performed += instance.OnPoint; @Point.canceled += instance.OnPoint; } private void UnregisterCallbacks(IUIActions instance) { @Click.started -= instance.OnClick; @Click.performed -= instance.OnClick; @Click.canceled -= instance.OnClick; @Point.started -= instance.OnPoint; @Point.performed -= instance.OnPoint; @Point.canceled -= instance.OnPoint; } public void RemoveCallbacks(IUIActions instance) { if (m_Wrapper.m_UIActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } public void SetCallbacks(IUIActions instance) { foreach (var item in m_Wrapper.m_UIActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_UIActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } public UIActions @UI => new UIActions(this); public interface IPlayerActions { void OnPointClick(InputAction.CallbackContext context); void OnCancelClick(InputAction.CallbackContext context); } public interface ICameraActions { void OnMove(InputAction.CallbackContext context); void OnRotate(InputAction.CallbackContext context); void OnZoom(InputAction.CallbackContext context); } public interface IUIActions { void OnClick(InputAction.CallbackContext context); void OnPoint(InputAction.CallbackContext context); } }