//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.6.3 // from Assets/02.Scritps/BlueWater.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 @BlueWater: IInputActionCollection2, IDisposable { public InputActionAsset asset { get; } public @BlueWater() { asset = InputActionAsset.FromJson(@"{ ""name"": ""BlueWater"", ""maps"": [ { ""name"": ""Player"", ""id"": ""9fe03cc1-5cd3-4b79-a95e-461613cb242e"", ""actions"": [ { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""e46165d9-8066-4400-8950-9b7d4bb9ca75"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true } ], ""bindings"": [ { ""name"": ""WASD"", ""id"": ""4dc5b54c-0e59-461e-a12d-470900925a36"", ""path"": ""2DVector"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""07083b18-8b38-4c90-ae78-28c2927a5f82"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""3b75699e-1063-4230-9ac3-95292c44d2bd"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""6bdc290d-3bc8-4e00-b868-1977d3f2267d"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""03206e08-b0b8-4a95-9bf8-a3e4fd10d4db"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true } ] } ], ""controlSchemes"": [ { ""name"": ""Keyboard"", ""bindingGroup"": ""Keyboard"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false }, { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] } ] }"); // Player m_Player = asset.FindActionMap("Player", throwIfNotFound: true); m_Player_Move = m_Player.FindAction("Move", 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(); } 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_Move; public struct PlayerActions { private @BlueWater m_Wrapper; public PlayerActions(@BlueWater wrapper) { m_Wrapper = wrapper; } public InputAction @Move => m_Wrapper.m_Player_Move; 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); @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; } private void UnregisterCallbacks(IPlayerActions instance) { @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; } 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); private int m_KeyboardSchemeIndex = -1; public InputControlScheme KeyboardScheme { get { if (m_KeyboardSchemeIndex == -1) m_KeyboardSchemeIndex = asset.FindControlSchemeIndex("Keyboard"); return asset.controlSchemes[m_KeyboardSchemeIndex]; } } public interface IPlayerActions { void OnMove(InputAction.CallbackContext context); } }