Files
2026-03-22 18:49:00 +08:00

1002 lines
48 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
// version 1.13.0
// from Packages/com.nwh.dynamicwaterphysics/Runtime/ShipController/Input/InputProviders/InputSystemProvider/ShipInputActions.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 NWH.DWP2.ShipController
{
/// <summary>
/// Provides programmatic access to <see cref="InputActionAsset" />, <see cref="InputActionMap" />, <see cref="InputAction" /> and <see cref="InputControlScheme" /> instances defined in asset "Packages/com.nwh.dynamicwaterphysics/Runtime/ShipController/Input/InputProviders/InputSystemProvider/ShipInputActions.inputactions".
/// </summary>
/// <remarks>
/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified.
/// </remarks>
/// <example>
/// <code>
/// using namespace UnityEngine;
/// using UnityEngine.InputSystem;
///
/// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface.
/// public class Example : MonoBehaviour, MyActions.IPlayerActions
/// {
/// private MyActions_Actions m_Actions; // Source code representation of asset.
/// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map.
///
/// void Awake()
/// {
/// m_Actions = new MyActions_Actions(); // Create asset object.
/// m_Player = m_Actions.Player; // Extract action map object.
/// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions.
/// }
///
/// void OnDestroy()
/// {
/// m_Actions.Dispose(); // Destroy asset object.
/// }
///
/// void OnEnable()
/// {
/// m_Player.Enable(); // Enable all actions within map.
/// }
///
/// void OnDisable()
/// {
/// m_Player.Disable(); // Disable all actions within map.
/// }
///
/// #region Interface implementation of MyActions.IPlayerActions
///
/// // Invoked when "Move" action is either started, performed or canceled.
/// public void OnMove(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnMove: {context.ReadValue&lt;Vector2&gt;()}");
/// }
///
/// // Invoked when "Attack" action is either started, performed or canceled.
/// public void OnAttack(InputAction.CallbackContext context)
/// {
/// Debug.Log($"OnAttack: {context.ReadValue&lt;float&gt;()}");
/// }
///
/// #endregion
/// }
/// </code>
/// </example>
public partial class @ShipInputActions: IInputActionCollection2, IDisposable
{
/// <summary>
/// Provides access to the underlying asset instance.
/// </summary>
public InputActionAsset asset { get; }
/// <summary>
/// Constructs a new instance.
/// </summary>
public @ShipInputActions()
{
asset = InputActionAsset.FromJson(@"{
""name"": ""ShipInputActions"",
""maps"": [
{
""name"": ""ShipControls"",
""id"": ""200a0048-834b-4c46-8e58-cb0180a3f09b"",
""actions"": [
{
""name"": ""Steering"",
""type"": ""Value"",
""id"": ""4c14d84a-48f6-429e-9111-d009cff86527"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Throttle"",
""type"": ""Value"",
""id"": ""067e3728-8c0e-4c68-8b07-765ef5a0b2ff"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Throttle2"",
""type"": ""Value"",
""id"": ""ec48226f-41c5-4f41-addf-d89dc4fe9489"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Throttle3"",
""type"": ""Value"",
""id"": ""adb1ee87-c871-44cb-9536-be9a29269bd3"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""Throttle4"",
""type"": ""Value"",
""id"": ""09912318-ce4d-4f0b-8336-e581f237a903"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""BowThruster"",
""type"": ""Value"",
""id"": ""a09cdc8f-5c97-4068-8e2c-f72377d022f2"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""SternThruster"",
""type"": ""Value"",
""id"": ""61f34607-04fc-4263-b801-6bb95dda9649"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""SubmarineDepth"",
""type"": ""Value"",
""id"": ""c2a3958c-d006-4c67-8425-3635c0303de7"",
""expectedControlType"": ""Axis"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": true
},
{
""name"": ""EngineStartStop"",
""type"": ""Button"",
""id"": ""83764afd-1cc4-4537-9658-82bb7f635f32"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""Anchor"",
""type"": ""Button"",
""id"": ""0050fc1b-a233-4284-b206-2e5254c3fc79"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
},
{
""name"": ""RotateSail"",
""type"": ""Button"",
""id"": ""6834f9a6-3f72-4ce7-9272-4c08d28e2f6c"",
""expectedControlType"": ""Button"",
""processors"": """",
""interactions"": """",
""initialStateCheck"": false
}
],
""bindings"": [
{
""name"": ""Keyboard"",
""id"": ""1bff6693-e128-4d74-ad2f-ad4e229608a8"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Steering"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""Negative"",
""id"": ""6a4beedd-9d33-48f8-ab0b-2fa4835b56d5"",
""path"": ""<Keyboard>/a"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Steering"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Positive"",
""id"": ""3ce20f4e-6e04-4810-b8c6-829ced054390"",
""path"": ""<Keyboard>/d"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Steering"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Gamepad"",
""id"": ""acf664f4-dde0-4367-8e3a-7fbdf293bc0c"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": ""AxisDeadzone"",
""groups"": """",
""action"": ""Steering"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""negative"",
""id"": ""0332ccc4-b818-41e6-8455-330ec56c13de"",
""path"": ""<Gamepad>/leftStick/left"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Steering"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""positive"",
""id"": ""89725913-86df-4c0b-893e-7dab71609463"",
""path"": ""<Gamepad>/leftStick/right"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Steering"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Keyboard"",
""id"": ""4b4d086e-45c1-4efd-8515-ae86f80a90b1"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""Negative"",
""id"": ""6f9e3d4b-0428-4529-8135-15a721c1c69c"",
""path"": ""<Keyboard>/s"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Positive"",
""id"": ""6da65c4c-15f8-4e4d-9560-05883d18ce16"",
""path"": ""<Keyboard>/w"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Gamepad"",
""id"": ""405ba6f9-74dd-4b74-8687-7dda1bc905d3"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""positive"",
""id"": ""7d163169-2e04-49bb-8dad-3fa803f4201e"",
""path"": ""<Gamepad>/rightTrigger"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Negative"",
""id"": ""64d90bc6-be37-4aab-ae3e-418884101999"",
""path"": ""<Gamepad>/leftTrigger"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Keyboard"",
""id"": ""72d84049-f629-4a9e-bcfc-28b9c25ab184"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""SternThruster"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""Negative"",
""id"": ""518e635c-d6f9-4b2c-927c-ef61e6ab41d2"",
""path"": ""<Keyboard>/z"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""SternThruster"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Positive"",
""id"": ""0f31564a-814a-4fb0-b549-e2c7e3e93935"",
""path"": ""<Keyboard>/c"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""SternThruster"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Keyboard"",
""id"": ""e04c0968-0501-4c7c-8326-dc8e845631aa"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""BowThruster"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""Negative"",
""id"": ""1d34dc63-cb94-4628-8a5d-f1b5b5c553de"",
""path"": ""<Keyboard>/q"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""BowThruster"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Positive"",
""id"": ""7d4e3e8a-9ffe-40e0-b96e-b7b1f94a90cb"",
""path"": ""<Keyboard>/e"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""BowThruster"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": """",
""id"": ""d62bb2c8-9196-4156-8dcb-6880975b400b"",
""path"": ""<Keyboard>/e"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""EngineStartStop"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": """",
""id"": ""41b26daf-b33a-44aa-914f-71aa6d3e1e60"",
""path"": ""<Keyboard>/t"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Anchor"",
""isComposite"": false,
""isPartOfComposite"": false
},
{
""name"": ""Keyboard"",
""id"": ""b228703a-0571-41de-9716-c9193a6cb635"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""SubmarineDepth"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""Negative"",
""id"": ""92ec8857-35e5-49fd-9008-80f3f4a5704b"",
""path"": ""<Keyboard>/k"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""SubmarineDepth"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Positive"",
""id"": ""511c38f0-ff55-41b6-b29c-968ae5d0bdca"",
""path"": ""<Keyboard>/i"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""SubmarineDepth"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Keyboard"",
""id"": ""425eb718-41ba-4046-b5e1-c0765b18a0d6"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""RotateSail"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""negative"",
""id"": ""665b2de9-54c1-49b9-8c09-b09d51986004"",
""path"": ""<Keyboard>/1"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""RotateSail"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""positive"",
""id"": ""77c6e8da-423b-4a61-81b3-307ee0885fb3"",
""path"": ""<Keyboard>/3"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""RotateSail"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""Gamepad"",
""id"": ""784000ff-cd57-4a8b-b566-5c9ecfd49072"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""RotateSail"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""negative"",
""id"": ""dd4ceb8f-8255-48b1-a653-b20d0d032ea0"",
""path"": ""<Gamepad>/leftShoulder"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""RotateSail"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""positive"",
""id"": ""fea1ff3f-958e-4d51-8989-92f1ff0353c3"",
""path"": ""<Gamepad>/rightShoulder"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""RotateSail"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""1D Axis"",
""id"": ""d1628076-9f91-4ba6-ae90-d8b036e48da9"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle2"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""negative"",
""id"": ""12f1d965-9170-49b1-b790-087f826b2012"",
""path"": ""<Keyboard>/5"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle2"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""positive"",
""id"": ""1cf7ddc0-61ae-454c-aaaa-2748a687d422"",
""path"": ""<Keyboard>/6"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle2"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""1D Axis"",
""id"": ""1025eb1c-b1c4-4e27-a4d8-93a170474157"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle3"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""negative"",
""id"": ""951136f0-6456-4b40-98c5-bb2d65454e30"",
""path"": ""<Keyboard>/7"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle3"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""positive"",
""id"": ""bfa74b17-341e-4959-83e9-4066379cdee9"",
""path"": ""<Keyboard>/8"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle3"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""1D Axis"",
""id"": ""6670e901-cc41-42dd-accd-f9066c43566b"",
""path"": ""1DAxis"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle4"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""negative"",
""id"": ""06a71ebf-f276-45a2-a2a4-d106ecb64eca"",
""path"": ""<Keyboard>/9"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle4"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""positive"",
""id"": ""f677e629-0758-4bf2-8ab6-0d5cccf465a3"",
""path"": ""<Keyboard>/0"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Throttle4"",
""isComposite"": false,
""isPartOfComposite"": true
}
]
}
],
""controlSchemes"": []
}");
// ShipControls
m_ShipControls = asset.FindActionMap("ShipControls", throwIfNotFound: true);
m_ShipControls_Steering = m_ShipControls.FindAction("Steering", throwIfNotFound: true);
m_ShipControls_Throttle = m_ShipControls.FindAction("Throttle", throwIfNotFound: true);
m_ShipControls_Throttle2 = m_ShipControls.FindAction("Throttle2", throwIfNotFound: true);
m_ShipControls_Throttle3 = m_ShipControls.FindAction("Throttle3", throwIfNotFound: true);
m_ShipControls_Throttle4 = m_ShipControls.FindAction("Throttle4", throwIfNotFound: true);
m_ShipControls_BowThruster = m_ShipControls.FindAction("BowThruster", throwIfNotFound: true);
m_ShipControls_SternThruster = m_ShipControls.FindAction("SternThruster", throwIfNotFound: true);
m_ShipControls_SubmarineDepth = m_ShipControls.FindAction("SubmarineDepth", throwIfNotFound: true);
m_ShipControls_EngineStartStop = m_ShipControls.FindAction("EngineStartStop", throwIfNotFound: true);
m_ShipControls_Anchor = m_ShipControls.FindAction("Anchor", throwIfNotFound: true);
m_ShipControls_RotateSail = m_ShipControls.FindAction("RotateSail", throwIfNotFound: true);
}
~@ShipInputActions()
{
UnityEngine.Debug.Assert(!m_ShipControls.enabled, "This will cause a leak and performance issues, ShipInputActions.ShipControls.Disable() has not been called.");
}
/// <summary>
/// Destroys this asset and all associated <see cref="InputAction"/> instances.
/// </summary>
public void Dispose()
{
UnityEngine.Object.Destroy(asset);
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindingMask" />
public InputBinding? bindingMask
{
get => asset.bindingMask;
set => asset.bindingMask = value;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.devices" />
public ReadOnlyArray<InputDevice>? devices
{
get => asset.devices;
set => asset.devices = value;
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.controlSchemes" />
public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Contains(InputAction)" />
public bool Contains(InputAction action)
{
return asset.Contains(action);
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.GetEnumerator()" />
public IEnumerator<InputAction> GetEnumerator()
{
return asset.GetEnumerator();
}
/// <inheritdoc cref="IEnumerable.GetEnumerator()" />
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Enable()" />
public void Enable()
{
asset.Enable();
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Disable()" />
public void Disable()
{
asset.Disable();
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindings" />
public IEnumerable<InputBinding> bindings => asset.bindings;
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindAction(string, bool)" />
public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)
{
return asset.FindAction(actionNameOrId, throwIfNotFound);
}
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindBinding(InputBinding, out InputAction)" />
public int FindBinding(InputBinding bindingMask, out InputAction action)
{
return asset.FindBinding(bindingMask, out action);
}
// ShipControls
private readonly InputActionMap m_ShipControls;
private List<IShipControlsActions> m_ShipControlsActionsCallbackInterfaces = new List<IShipControlsActions>();
private readonly InputAction m_ShipControls_Steering;
private readonly InputAction m_ShipControls_Throttle;
private readonly InputAction m_ShipControls_Throttle2;
private readonly InputAction m_ShipControls_Throttle3;
private readonly InputAction m_ShipControls_Throttle4;
private readonly InputAction m_ShipControls_BowThruster;
private readonly InputAction m_ShipControls_SternThruster;
private readonly InputAction m_ShipControls_SubmarineDepth;
private readonly InputAction m_ShipControls_EngineStartStop;
private readonly InputAction m_ShipControls_Anchor;
private readonly InputAction m_ShipControls_RotateSail;
/// <summary>
/// Provides access to input actions defined in input action map "ShipControls".
/// </summary>
public struct ShipControlsActions
{
private @ShipInputActions m_Wrapper;
/// <summary>
/// Construct a new instance of the input action map wrapper class.
/// </summary>
public ShipControlsActions(@ShipInputActions wrapper) { m_Wrapper = wrapper; }
/// <summary>
/// Provides access to the underlying input action "ShipControls/Steering".
/// </summary>
public InputAction @Steering => m_Wrapper.m_ShipControls_Steering;
/// <summary>
/// Provides access to the underlying input action "ShipControls/Throttle".
/// </summary>
public InputAction @Throttle => m_Wrapper.m_ShipControls_Throttle;
/// <summary>
/// Provides access to the underlying input action "ShipControls/Throttle2".
/// </summary>
public InputAction @Throttle2 => m_Wrapper.m_ShipControls_Throttle2;
/// <summary>
/// Provides access to the underlying input action "ShipControls/Throttle3".
/// </summary>
public InputAction @Throttle3 => m_Wrapper.m_ShipControls_Throttle3;
/// <summary>
/// Provides access to the underlying input action "ShipControls/Throttle4".
/// </summary>
public InputAction @Throttle4 => m_Wrapper.m_ShipControls_Throttle4;
/// <summary>
/// Provides access to the underlying input action "ShipControls/BowThruster".
/// </summary>
public InputAction @BowThruster => m_Wrapper.m_ShipControls_BowThruster;
/// <summary>
/// Provides access to the underlying input action "ShipControls/SternThruster".
/// </summary>
public InputAction @SternThruster => m_Wrapper.m_ShipControls_SternThruster;
/// <summary>
/// Provides access to the underlying input action "ShipControls/SubmarineDepth".
/// </summary>
public InputAction @SubmarineDepth => m_Wrapper.m_ShipControls_SubmarineDepth;
/// <summary>
/// Provides access to the underlying input action "ShipControls/EngineStartStop".
/// </summary>
public InputAction @EngineStartStop => m_Wrapper.m_ShipControls_EngineStartStop;
/// <summary>
/// Provides access to the underlying input action "ShipControls/Anchor".
/// </summary>
public InputAction @Anchor => m_Wrapper.m_ShipControls_Anchor;
/// <summary>
/// Provides access to the underlying input action "ShipControls/RotateSail".
/// </summary>
public InputAction @RotateSail => m_Wrapper.m_ShipControls_RotateSail;
/// <summary>
/// Provides access to the underlying input action map instance.
/// </summary>
public InputActionMap Get() { return m_Wrapper.m_ShipControls; }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" />
public void Enable() { Get().Enable(); }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" />
public void Disable() { Get().Disable(); }
/// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" />
public bool enabled => Get().enabled;
/// <summary>
/// Implicitly converts an <see ref="ShipControlsActions" /> to an <see ref="InputActionMap" /> instance.
/// </summary>
public static implicit operator InputActionMap(ShipControlsActions set) { return set.Get(); }
/// <summary>
/// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <param name="instance">Callback instance.</param>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing.
/// </remarks>
/// <seealso cref="ShipControlsActions" />
public void AddCallbacks(IShipControlsActions instance)
{
if (instance == null || m_Wrapper.m_ShipControlsActionsCallbackInterfaces.Contains(instance)) return;
m_Wrapper.m_ShipControlsActionsCallbackInterfaces.Add(instance);
@Steering.started += instance.OnSteering;
@Steering.performed += instance.OnSteering;
@Steering.canceled += instance.OnSteering;
@Throttle.started += instance.OnThrottle;
@Throttle.performed += instance.OnThrottle;
@Throttle.canceled += instance.OnThrottle;
@Throttle2.started += instance.OnThrottle2;
@Throttle2.performed += instance.OnThrottle2;
@Throttle2.canceled += instance.OnThrottle2;
@Throttle3.started += instance.OnThrottle3;
@Throttle3.performed += instance.OnThrottle3;
@Throttle3.canceled += instance.OnThrottle3;
@Throttle4.started += instance.OnThrottle4;
@Throttle4.performed += instance.OnThrottle4;
@Throttle4.canceled += instance.OnThrottle4;
@BowThruster.started += instance.OnBowThruster;
@BowThruster.performed += instance.OnBowThruster;
@BowThruster.canceled += instance.OnBowThruster;
@SternThruster.started += instance.OnSternThruster;
@SternThruster.performed += instance.OnSternThruster;
@SternThruster.canceled += instance.OnSternThruster;
@SubmarineDepth.started += instance.OnSubmarineDepth;
@SubmarineDepth.performed += instance.OnSubmarineDepth;
@SubmarineDepth.canceled += instance.OnSubmarineDepth;
@EngineStartStop.started += instance.OnEngineStartStop;
@EngineStartStop.performed += instance.OnEngineStartStop;
@EngineStartStop.canceled += instance.OnEngineStartStop;
@Anchor.started += instance.OnAnchor;
@Anchor.performed += instance.OnAnchor;
@Anchor.canceled += instance.OnAnchor;
@RotateSail.started += instance.OnRotateSail;
@RotateSail.performed += instance.OnRotateSail;
@RotateSail.canceled += instance.OnRotateSail;
}
/// <summary>
/// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map.
/// </summary>
/// <remarks>
/// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects.
/// </remarks>
/// <seealso cref="ShipControlsActions" />
private void UnregisterCallbacks(IShipControlsActions instance)
{
@Steering.started -= instance.OnSteering;
@Steering.performed -= instance.OnSteering;
@Steering.canceled -= instance.OnSteering;
@Throttle.started -= instance.OnThrottle;
@Throttle.performed -= instance.OnThrottle;
@Throttle.canceled -= instance.OnThrottle;
@Throttle2.started -= instance.OnThrottle2;
@Throttle2.performed -= instance.OnThrottle2;
@Throttle2.canceled -= instance.OnThrottle2;
@Throttle3.started -= instance.OnThrottle3;
@Throttle3.performed -= instance.OnThrottle3;
@Throttle3.canceled -= instance.OnThrottle3;
@Throttle4.started -= instance.OnThrottle4;
@Throttle4.performed -= instance.OnThrottle4;
@Throttle4.canceled -= instance.OnThrottle4;
@BowThruster.started -= instance.OnBowThruster;
@BowThruster.performed -= instance.OnBowThruster;
@BowThruster.canceled -= instance.OnBowThruster;
@SternThruster.started -= instance.OnSternThruster;
@SternThruster.performed -= instance.OnSternThruster;
@SternThruster.canceled -= instance.OnSternThruster;
@SubmarineDepth.started -= instance.OnSubmarineDepth;
@SubmarineDepth.performed -= instance.OnSubmarineDepth;
@SubmarineDepth.canceled -= instance.OnSubmarineDepth;
@EngineStartStop.started -= instance.OnEngineStartStop;
@EngineStartStop.performed -= instance.OnEngineStartStop;
@EngineStartStop.canceled -= instance.OnEngineStartStop;
@Anchor.started -= instance.OnAnchor;
@Anchor.performed -= instance.OnAnchor;
@Anchor.canceled -= instance.OnAnchor;
@RotateSail.started -= instance.OnRotateSail;
@RotateSail.performed -= instance.OnRotateSail;
@RotateSail.canceled -= instance.OnRotateSail;
}
/// <summary>
/// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="ShipControlsActions.UnregisterCallbacks(IShipControlsActions)" />.
/// </summary>
/// <seealso cref="ShipControlsActions.UnregisterCallbacks(IShipControlsActions)" />
public void RemoveCallbacks(IShipControlsActions instance)
{
if (m_Wrapper.m_ShipControlsActionsCallbackInterfaces.Remove(instance))
UnregisterCallbacks(instance);
}
/// <summary>
/// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />.
/// </summary>
/// <remarks>
/// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks.
/// </remarks>
/// <seealso cref="ShipControlsActions.AddCallbacks(IShipControlsActions)" />
/// <seealso cref="ShipControlsActions.RemoveCallbacks(IShipControlsActions)" />
/// <seealso cref="ShipControlsActions.UnregisterCallbacks(IShipControlsActions)" />
public void SetCallbacks(IShipControlsActions instance)
{
foreach (var item in m_Wrapper.m_ShipControlsActionsCallbackInterfaces)
UnregisterCallbacks(item);
m_Wrapper.m_ShipControlsActionsCallbackInterfaces.Clear();
AddCallbacks(instance);
}
}
/// <summary>
/// Provides a new <see cref="ShipControlsActions" /> instance referencing this action map.
/// </summary>
public ShipControlsActions @ShipControls => new ShipControlsActions(this);
/// <summary>
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "ShipControls" which allows adding and removing callbacks.
/// </summary>
/// <seealso cref="ShipControlsActions.AddCallbacks(IShipControlsActions)" />
/// <seealso cref="ShipControlsActions.RemoveCallbacks(IShipControlsActions)" />
public interface IShipControlsActions
{
/// <summary>
/// Method invoked when associated input action "Steering" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSteering(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Throttle" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnThrottle(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Throttle2" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnThrottle2(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Throttle3" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnThrottle3(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Throttle4" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnThrottle4(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "BowThruster" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnBowThruster(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "SternThruster" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSternThruster(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "SubmarineDepth" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnSubmarineDepth(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "EngineStartStop" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnEngineStartStop(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "Anchor" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnAnchor(InputAction.CallbackContext context);
/// <summary>
/// Method invoked when associated input action "RotateSail" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
/// </summary>
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
void OnRotateSail(InputAction.CallbackContext context);
}
}
}