//------------------------------------------------------------------------------ // // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator // version 1.14.0 // from Assets/PlayerInputControl.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; namespace NBF { /// /// Provides programmatic access to , , and instances defined in asset "Assets/PlayerInputControl.inputactions". /// /// /// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified. /// /// /// /// 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<Vector2>()}"); /// } /// /// // Invoked when "Attack" action is either started, performed or canceled. /// public void OnAttack(InputAction.CallbackContext context) /// { /// Debug.Log($"OnAttack: {context.ReadValue<float>()}"); /// } /// /// #endregion /// } /// /// public partial class @PlayerInputControl: IInputActionCollection2, IDisposable { /// /// Provides access to the underlying asset instance. /// public InputActionAsset asset { get; } /// /// Constructs a new instance. /// public @PlayerInputControl() { asset = InputActionAsset.FromJson(@"{ ""name"": ""PlayerInputControl"", ""maps"": [ { ""name"": ""Normal"", ""id"": ""df70fa95-8a34-4494-b137-73ab6b9c7d37"", ""actions"": [ { ""name"": ""Move"", ""type"": ""Value"", ""id"": ""351f2ccd-1f9f-44bf-9bec-d62ac5c5f408"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Look"", ""type"": ""Value"", ""id"": ""6b444451-8a00-4d00-a97e-f47457f736a8"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Zoom"", ""type"": ""Value"", ""id"": ""98493329-ff99-4095-8e99-7661388f993a"", ""expectedControlType"": ""Vector2"", ""processors"": """", ""interactions"": """", ""initialStateCheck"": true }, { ""name"": ""Jump"", ""type"": ""Button"", ""id"": ""f1ba0d36-48eb-4cd5-b651-1c94a6531f70"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Run"", ""type"": ""Button"", ""id"": ""641cd816-40e6-41b4-8c3d-04687c349290"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Op1"", ""type"": ""Button"", ""id"": ""a6038f56-bd74-4372-a689-9d124cb9dce4"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Op2"", ""type"": ""Button"", ""id"": ""eb447b1a-6476-4171-b4f6-5829e89b7bb1"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Use"", ""type"": ""Button"", ""id"": ""7372f7e2-b3d2-4e91-b8e6-2f0ccde6fc1f"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Use2"", ""type"": ""Button"", ""id"": ""45a833e1-2aaf-4907-ae1e-1d97ee260b18"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""SelectItem"", ""type"": ""Button"", ""id"": ""86ddb388-aafd-4894-ad60-548692875a44"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""SelectBait"", ""type"": ""Button"", ""id"": ""580ad571-1c6f-4a92-b7ef-5ad070f39c37"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""SelectFood"", ""type"": ""Button"", ""id"": ""ab97da75-1fc6-4078-8cd9-4f385acf6fb3"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""UseTorch"", ""type"": ""Button"", ""id"": ""b78e0e72-e07a-4eb1-bc15-5f5829362c66"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""UseTelescope"", ""type"": ""Button"", ""id"": ""337d2419-7c32-4034-8287-cb7ef2ddad9d"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""UseBrail"", ""type"": ""Button"", ""id"": ""c252c4a9-a2dc-4f0c-9643-e144c075ee48"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""AddBob"", ""type"": ""Button"", ""id"": ""9eb9dd0d-f826-42f4-aff7-c87e2e6f037e"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""SubBob"", ""type"": ""Button"", ""id"": ""65665e2f-bf21-43f2-8b49-633cae84eb62"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""ToBag"", ""type"": ""Button"", ""id"": ""c2b64c66-782b-4ef6-a7cd-5010d18e501e"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Help"", ""type"": ""Button"", ""id"": ""35448d22-d762-4d1f-b7a4-a86d0fa63115"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Chat"", ""type"": ""Button"", ""id"": ""1d9a2ea1-7814-461d-b1bc-b9fd69821b4f"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Info"", ""type"": ""Button"", ""id"": ""c4d3c929-e81c-4b78-bd98-50fc5b7ff997"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Skill"", ""type"": ""Button"", ""id"": ""24ce9048-15be-4799-83a8-ab1889f7bf60"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""OpenBag"", ""type"": ""Button"", ""id"": ""40fa0fcf-5ae1-48ae-b333-3fb10fad6cc2"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Keepnet"", ""type"": ""Button"", ""id"": ""5636ef35-4a13-42bc-a9e0-15dfd2a952bd"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Make"", ""type"": ""Button"", ""id"": ""67a15925-6997-4904-858b-879e440b6e3e"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Map"", ""type"": ""Button"", ""id"": ""b84f3faa-ab54-448a-9362-c3950593ad77"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick1"", ""type"": ""Button"", ""id"": ""684b0dde-3f8f-4a88-9ecb-e0fb11de8f55"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick2"", ""type"": ""Button"", ""id"": ""318eb5e1-ef85-4d25-940c-207ca61a4f86"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick3"", ""type"": ""Button"", ""id"": ""97ed3871-2a0c-46bf-83bb-a4bad4d3d544"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick4"", ""type"": ""Button"", ""id"": ""a7b19131-f9dd-4f2a-b617-526856f6ae34"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick5"", ""type"": ""Button"", ""id"": ""41ac843b-c1a5-41fd-9b84-3c36bd6939e7"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick6"", ""type"": ""Button"", ""id"": ""a469cd36-0dca-4f9a-91c2-29c8e854d92c"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick7"", ""type"": ""Button"", ""id"": ""cbd4a3df-9c62-4090-87f0-167491afceb2"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick8"", ""type"": ""Button"", ""id"": ""e187691f-4928-4792-a356-11c571df6e8b"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Quick9"", ""type"": ""Button"", ""id"": ""79fdff4c-7c25-4970-9379-71e1c73534b0"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false }, { ""name"": ""Back"", ""type"": ""Button"", ""id"": ""6b649cc4-0104-4234-bfe9-2d647df3862d"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""978bfe49-cc26-4a3d-ab7b-7d7a29327403"", ""path"": ""/leftStick"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": ""WASD"", ""id"": ""00ca640b-d935-4593-8157-c05846ea39b3"", ""path"": ""Dpad"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Move"", ""isComposite"": true, ""isPartOfComposite"": false }, { ""name"": ""up"", ""id"": ""e2062cb9-1b15-46a2-838c-2f8d72a0bdd9"", ""path"": ""/w"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""up"", ""id"": ""8180e8bd-4097-4f4e-ab88-4523101a6ce9"", ""path"": ""/upArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""320bffee-a40b-4347-ac70-c210eb8bc73a"", ""path"": ""/s"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""down"", ""id"": ""1c5327b5-f71c-4f60-99c7-4e737386f1d1"", ""path"": ""/downArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""d2581a9b-1d11-4566-b27d-b92aff5fabbc"", ""path"": ""/a"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""left"", ""id"": ""2e46982e-44cc-431b-9f0b-c11910bf467a"", ""path"": ""/leftArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""fcfe95b8-67b9-4526-84b5-5d0bc98d6400"", ""path"": ""/d"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": ""right"", ""id"": ""77bff152-3580-4b21-b6de-dcd0c7e41164"", ""path"": ""/rightArrow"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": true }, { ""name"": """", ""id"": ""1635d3fe-58b6-4ba9-a4e2-f4b964f6b5c8"", ""path"": ""/{Primary2DAxis}"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""3ea4d645-4504-4529-b061-ab81934c3752"", ""path"": ""/stick"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Move"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""c1f7a91b-d0fd-4a62-997e-7fb9b69bf235"", ""path"": ""/rightStick"", ""interactions"": """", ""processors"": """", ""groups"": "";Gamepad"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""8c8e490b-c610-4785-884f-f04217b23ca4"", ""path"": ""/delta"", ""interactions"": """", ""processors"": """", ""groups"": "";Keyboard&Mouse;Touch"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""3e5f5442-8668-4b27-a940-df99bad7e831"", ""path"": ""/{Hatswitch}"", ""interactions"": """", ""processors"": """", ""groups"": ""Joystick"", ""action"": ""Look"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f2e9ba44-c423-42a7-ad56-f20975884794"", ""path"": ""/leftShift"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Run"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""8cbb2f4b-a784-49cc-8d5e-c010b8c7f4e6"", ""path"": ""/leftStickPress"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Run"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d8bf24bf-3f2f-4160-a97c-38ec1eb520ba"", ""path"": ""/trigger"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Run"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""eb40bb66-4559-4dfa-9a2f-820438abb426"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""daba33a1-ad0c-4742-a909-43ad1cdfbeb6"", ""path"": ""/buttonSouth"", ""interactions"": """", ""processors"": """", ""groups"": ""Gamepad"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""603f3daf-40bd-4854-8724-93e8017f59e3"", ""path"": ""/secondaryButton"", ""interactions"": """", ""processors"": """", ""groups"": ""XR"", ""action"": ""Jump"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""13e7338f-4b65-4fe1-be3e-9e343214372a"", ""path"": ""/scroll"", ""interactions"": """", ""processors"": """", ""groups"": ""Keyboard&Mouse"", ""action"": ""Zoom"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""dc53c96d-ef5b-44af-ab2f-ec42f8e2e045"", ""path"": ""/leftButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Op1"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""35e599f2-e8a1-416e-bca5-f3a2137421d1"", ""path"": ""/rightButton"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Op2"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""01d704a4-4abb-4832-a338-6ecc59ac4c75"", ""path"": ""/e"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Use"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""211b10df-e7a6-4128-a2a9-f8d3817914e4"", ""path"": ""/b"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""SelectBait"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d5771e70-0672-4b6b-a48f-206cc5276812"", ""path"": ""/t"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""SelectFood"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""85c51334-cad2-42b8-9bc0-9fa9bc0f9643"", ""path"": ""/u"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""SelectItem"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""cea943ec-a234-44a2-8993-9da71b3ae18b"", ""path"": ""/f"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""UseTorch"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""986650f5-2cf5-4141-95cc-6e68292d361a"", ""path"": ""/z"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""UseTelescope"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""980d5d3e-d16c-4341-9ccd-013cca712b8a"", ""path"": ""/space"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""UseBrail"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ab09d705-53b7-4355-bca9-bc12a07ba5e6"", ""path"": ""/equals"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""AddBob"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""23229eb8-1408-476c-ab39-a85cec86d2fa"", ""path"": ""/minus"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""SubBob"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""bb2cdeeb-8818-4958-982c-144f48b52c2e"", ""path"": ""/backspace"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""ToBag"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9291baa5-42b7-41fb-91a9-a3f38b86d5e6"", ""path"": ""/f1"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Help"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""815dc5ee-4737-4312-98c5-01670023c90b"", ""path"": ""/q"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Chat"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ed0962d8-3fac-4742-acb1-a33c20ad4aa1"", ""path"": ""/v"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Info"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""0fa9b73e-f638-40ae-b9dd-7962a657900c"", ""path"": ""/o"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Skill"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""5a3a07bf-8da8-411a-a74f-88af99c6078b"", ""path"": ""/i"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""OpenBag"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9835cfe8-92fc-486e-9090-72133f850c1f"", ""path"": ""/c"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Keepnet"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""4b8b8d1b-1920-4bfd-95f8-654e70fc9679"", ""path"": ""/n"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Make"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""db12b135-f475-4d72-ab9f-a7bdcc9536ec"", ""path"": ""/m"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Map"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""aa41d4be-4554-49ff-8ce9-e7b7391a4a0a"", ""path"": ""/1"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick1"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""ec90a04d-0c9f-4573-9585-e0684561af73"", ""path"": ""/2"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick2"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""6e24d903-2893-465f-8a15-99ff269fb90a"", ""path"": ""/3"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick3"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""b43a8a8d-396f-45d5-b7c0-49906d3959bf"", ""path"": ""/4"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick4"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9939c37d-0dd5-4ba5-8d15-687a25cf83d8"", ""path"": ""/5"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick5"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""df0f7d01-b6a5-4a06-b145-4ac9521caa47"", ""path"": ""/6"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick6"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""d1f3bf38-81dd-40e5-8479-70318ec1049b"", ""path"": ""/7"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick7"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""f9789cc4-2c44-4dfe-b7cd-e583d14d75cc"", ""path"": ""/8"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick8"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""6857da81-80ac-4d7d-ac72-c656cca1209f"", ""path"": ""/9"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Quick9"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""9f16f60c-4749-4672-bdaf-9fb804c0b6f1"", ""path"": ""/escape"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Back"", ""isComposite"": false, ""isPartOfComposite"": false }, { ""name"": """", ""id"": ""7e0ce3aa-9cf2-4b1e-9995-756ccbdeeda4"", ""path"": ""/y"", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Use2"", ""isComposite"": false, ""isPartOfComposite"": false } ] }, { ""name"": ""UI"", ""id"": ""1e134a50-caf1-48ef-a011-2fabe2c0d049"", ""actions"": [ { ""name"": ""Roll"", ""type"": ""Button"", ""id"": ""379cc72d-f733-45da-b173-b881ab8ab0ed"", ""expectedControlType"": """", ""processors"": """", ""interactions"": """", ""initialStateCheck"": false } ], ""bindings"": [ { ""name"": """", ""id"": ""0e66040a-5980-401a-85c3-b2ef2cc13664"", ""path"": """", ""interactions"": """", ""processors"": """", ""groups"": """", ""action"": ""Roll"", ""isComposite"": false, ""isPartOfComposite"": false } ] } ], ""controlSchemes"": [ { ""name"": ""Keyboard&Mouse"", ""bindingGroup"": ""Keyboard&Mouse"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false }, { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Gamepad"", ""bindingGroup"": ""Gamepad"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Touch"", ""bindingGroup"": ""Touch"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""Joystick"", ""bindingGroup"": ""Joystick"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] }, { ""name"": ""XR"", ""bindingGroup"": ""XR"", ""devices"": [ { ""devicePath"": """", ""isOptional"": false, ""isOR"": false } ] } ] }"); // Normal m_Normal = asset.FindActionMap("Normal", throwIfNotFound: true); m_Normal_Move = m_Normal.FindAction("Move", throwIfNotFound: true); m_Normal_Look = m_Normal.FindAction("Look", throwIfNotFound: true); m_Normal_Zoom = m_Normal.FindAction("Zoom", throwIfNotFound: true); m_Normal_Jump = m_Normal.FindAction("Jump", throwIfNotFound: true); m_Normal_Run = m_Normal.FindAction("Run", throwIfNotFound: true); m_Normal_Op1 = m_Normal.FindAction("Op1", throwIfNotFound: true); m_Normal_Op2 = m_Normal.FindAction("Op2", throwIfNotFound: true); m_Normal_Use = m_Normal.FindAction("Use", throwIfNotFound: true); m_Normal_Use2 = m_Normal.FindAction("Use2", throwIfNotFound: true); m_Normal_SelectItem = m_Normal.FindAction("SelectItem", throwIfNotFound: true); m_Normal_SelectBait = m_Normal.FindAction("SelectBait", throwIfNotFound: true); m_Normal_SelectFood = m_Normal.FindAction("SelectFood", throwIfNotFound: true); m_Normal_UseTorch = m_Normal.FindAction("UseTorch", throwIfNotFound: true); m_Normal_UseTelescope = m_Normal.FindAction("UseTelescope", throwIfNotFound: true); m_Normal_UseBrail = m_Normal.FindAction("UseBrail", throwIfNotFound: true); m_Normal_AddBob = m_Normal.FindAction("AddBob", throwIfNotFound: true); m_Normal_SubBob = m_Normal.FindAction("SubBob", throwIfNotFound: true); m_Normal_ToBag = m_Normal.FindAction("ToBag", throwIfNotFound: true); m_Normal_Help = m_Normal.FindAction("Help", throwIfNotFound: true); m_Normal_Chat = m_Normal.FindAction("Chat", throwIfNotFound: true); m_Normal_Info = m_Normal.FindAction("Info", throwIfNotFound: true); m_Normal_Skill = m_Normal.FindAction("Skill", throwIfNotFound: true); m_Normal_OpenBag = m_Normal.FindAction("OpenBag", throwIfNotFound: true); m_Normal_Keepnet = m_Normal.FindAction("Keepnet", throwIfNotFound: true); m_Normal_Make = m_Normal.FindAction("Make", throwIfNotFound: true); m_Normal_Map = m_Normal.FindAction("Map", throwIfNotFound: true); m_Normal_Quick1 = m_Normal.FindAction("Quick1", throwIfNotFound: true); m_Normal_Quick2 = m_Normal.FindAction("Quick2", throwIfNotFound: true); m_Normal_Quick3 = m_Normal.FindAction("Quick3", throwIfNotFound: true); m_Normal_Quick4 = m_Normal.FindAction("Quick4", throwIfNotFound: true); m_Normal_Quick5 = m_Normal.FindAction("Quick5", throwIfNotFound: true); m_Normal_Quick6 = m_Normal.FindAction("Quick6", throwIfNotFound: true); m_Normal_Quick7 = m_Normal.FindAction("Quick7", throwIfNotFound: true); m_Normal_Quick8 = m_Normal.FindAction("Quick8", throwIfNotFound: true); m_Normal_Quick9 = m_Normal.FindAction("Quick9", throwIfNotFound: true); m_Normal_Back = m_Normal.FindAction("Back", throwIfNotFound: true); // UI m_UI = asset.FindActionMap("UI", throwIfNotFound: true); m_UI_Roll = m_UI.FindAction("Roll", throwIfNotFound: true); } ~@PlayerInputControl() { UnityEngine.Debug.Assert(!m_Normal.enabled, "This will cause a leak and performance issues, PlayerInputControl.Normal.Disable() has not been called."); UnityEngine.Debug.Assert(!m_UI.enabled, "This will cause a leak and performance issues, PlayerInputControl.UI.Disable() has not been called."); } /// /// Destroys this asset and all associated instances. /// 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); } // Normal private readonly InputActionMap m_Normal; private List m_NormalActionsCallbackInterfaces = new List(); private readonly InputAction m_Normal_Move; private readonly InputAction m_Normal_Look; private readonly InputAction m_Normal_Zoom; private readonly InputAction m_Normal_Jump; private readonly InputAction m_Normal_Run; private readonly InputAction m_Normal_Op1; private readonly InputAction m_Normal_Op2; private readonly InputAction m_Normal_Use; private readonly InputAction m_Normal_Use2; private readonly InputAction m_Normal_SelectItem; private readonly InputAction m_Normal_SelectBait; private readonly InputAction m_Normal_SelectFood; private readonly InputAction m_Normal_UseTorch; private readonly InputAction m_Normal_UseTelescope; private readonly InputAction m_Normal_UseBrail; private readonly InputAction m_Normal_AddBob; private readonly InputAction m_Normal_SubBob; private readonly InputAction m_Normal_ToBag; private readonly InputAction m_Normal_Help; private readonly InputAction m_Normal_Chat; private readonly InputAction m_Normal_Info; private readonly InputAction m_Normal_Skill; private readonly InputAction m_Normal_OpenBag; private readonly InputAction m_Normal_Keepnet; private readonly InputAction m_Normal_Make; private readonly InputAction m_Normal_Map; private readonly InputAction m_Normal_Quick1; private readonly InputAction m_Normal_Quick2; private readonly InputAction m_Normal_Quick3; private readonly InputAction m_Normal_Quick4; private readonly InputAction m_Normal_Quick5; private readonly InputAction m_Normal_Quick6; private readonly InputAction m_Normal_Quick7; private readonly InputAction m_Normal_Quick8; private readonly InputAction m_Normal_Quick9; private readonly InputAction m_Normal_Back; /// /// Provides access to input actions defined in input action map "Normal". /// public struct NormalActions { private @PlayerInputControl m_Wrapper; /// /// Construct a new instance of the input action map wrapper class. /// public NormalActions(@PlayerInputControl wrapper) { m_Wrapper = wrapper; } /// /// Provides access to the underlying input action "Normal/Move". /// public InputAction @Move => m_Wrapper.m_Normal_Move; /// /// Provides access to the underlying input action "Normal/Look". /// public InputAction @Look => m_Wrapper.m_Normal_Look; /// /// Provides access to the underlying input action "Normal/Zoom". /// public InputAction @Zoom => m_Wrapper.m_Normal_Zoom; /// /// Provides access to the underlying input action "Normal/Jump". /// public InputAction @Jump => m_Wrapper.m_Normal_Jump; /// /// Provides access to the underlying input action "Normal/Run". /// public InputAction @Run => m_Wrapper.m_Normal_Run; /// /// Provides access to the underlying input action "Normal/Op1". /// public InputAction @Op1 => m_Wrapper.m_Normal_Op1; /// /// Provides access to the underlying input action "Normal/Op2". /// public InputAction @Op2 => m_Wrapper.m_Normal_Op2; /// /// Provides access to the underlying input action "Normal/Use". /// public InputAction @Use => m_Wrapper.m_Normal_Use; /// /// Provides access to the underlying input action "Normal/Use2". /// public InputAction @Use2 => m_Wrapper.m_Normal_Use2; /// /// Provides access to the underlying input action "Normal/SelectItem". /// public InputAction @SelectItem => m_Wrapper.m_Normal_SelectItem; /// /// Provides access to the underlying input action "Normal/SelectBait". /// public InputAction @SelectBait => m_Wrapper.m_Normal_SelectBait; /// /// Provides access to the underlying input action "Normal/SelectFood". /// public InputAction @SelectFood => m_Wrapper.m_Normal_SelectFood; /// /// Provides access to the underlying input action "Normal/UseTorch". /// public InputAction @UseTorch => m_Wrapper.m_Normal_UseTorch; /// /// Provides access to the underlying input action "Normal/UseTelescope". /// public InputAction @UseTelescope => m_Wrapper.m_Normal_UseTelescope; /// /// Provides access to the underlying input action "Normal/UseBrail". /// public InputAction @UseBrail => m_Wrapper.m_Normal_UseBrail; /// /// Provides access to the underlying input action "Normal/AddBob". /// public InputAction @AddBob => m_Wrapper.m_Normal_AddBob; /// /// Provides access to the underlying input action "Normal/SubBob". /// public InputAction @SubBob => m_Wrapper.m_Normal_SubBob; /// /// Provides access to the underlying input action "Normal/ToBag". /// public InputAction @ToBag => m_Wrapper.m_Normal_ToBag; /// /// Provides access to the underlying input action "Normal/Help". /// public InputAction @Help => m_Wrapper.m_Normal_Help; /// /// Provides access to the underlying input action "Normal/Chat". /// public InputAction @Chat => m_Wrapper.m_Normal_Chat; /// /// Provides access to the underlying input action "Normal/Info". /// public InputAction @Info => m_Wrapper.m_Normal_Info; /// /// Provides access to the underlying input action "Normal/Skill". /// public InputAction @Skill => m_Wrapper.m_Normal_Skill; /// /// Provides access to the underlying input action "Normal/OpenBag". /// public InputAction @OpenBag => m_Wrapper.m_Normal_OpenBag; /// /// Provides access to the underlying input action "Normal/Keepnet". /// public InputAction @Keepnet => m_Wrapper.m_Normal_Keepnet; /// /// Provides access to the underlying input action "Normal/Make". /// public InputAction @Make => m_Wrapper.m_Normal_Make; /// /// Provides access to the underlying input action "Normal/Map". /// public InputAction @Map => m_Wrapper.m_Normal_Map; /// /// Provides access to the underlying input action "Normal/Quick1". /// public InputAction @Quick1 => m_Wrapper.m_Normal_Quick1; /// /// Provides access to the underlying input action "Normal/Quick2". /// public InputAction @Quick2 => m_Wrapper.m_Normal_Quick2; /// /// Provides access to the underlying input action "Normal/Quick3". /// public InputAction @Quick3 => m_Wrapper.m_Normal_Quick3; /// /// Provides access to the underlying input action "Normal/Quick4". /// public InputAction @Quick4 => m_Wrapper.m_Normal_Quick4; /// /// Provides access to the underlying input action "Normal/Quick5". /// public InputAction @Quick5 => m_Wrapper.m_Normal_Quick5; /// /// Provides access to the underlying input action "Normal/Quick6". /// public InputAction @Quick6 => m_Wrapper.m_Normal_Quick6; /// /// Provides access to the underlying input action "Normal/Quick7". /// public InputAction @Quick7 => m_Wrapper.m_Normal_Quick7; /// /// Provides access to the underlying input action "Normal/Quick8". /// public InputAction @Quick8 => m_Wrapper.m_Normal_Quick8; /// /// Provides access to the underlying input action "Normal/Quick9". /// public InputAction @Quick9 => m_Wrapper.m_Normal_Quick9; /// /// Provides access to the underlying input action "Normal/Back". /// public InputAction @Back => m_Wrapper.m_Normal_Back; /// /// Provides access to the underlying input action map instance. /// public InputActionMap Get() { return m_Wrapper.m_Normal; } /// public void Enable() { Get().Enable(); } /// public void Disable() { Get().Disable(); } /// public bool enabled => Get().enabled; /// /// Implicitly converts an to an instance. /// public static implicit operator InputActionMap(NormalActions set) { return set.Get(); } /// /// Adds , and callbacks provided via on all input actions contained in this map. /// /// Callback instance. /// /// If is null or have already been added this method does nothing. /// /// public void AddCallbacks(INormalActions instance) { if (instance == null || m_Wrapper.m_NormalActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_NormalActionsCallbackInterfaces.Add(instance); @Move.started += instance.OnMove; @Move.performed += instance.OnMove; @Move.canceled += instance.OnMove; @Look.started += instance.OnLook; @Look.performed += instance.OnLook; @Look.canceled += instance.OnLook; @Zoom.started += instance.OnZoom; @Zoom.performed += instance.OnZoom; @Zoom.canceled += instance.OnZoom; @Jump.started += instance.OnJump; @Jump.performed += instance.OnJump; @Jump.canceled += instance.OnJump; @Run.started += instance.OnRun; @Run.performed += instance.OnRun; @Run.canceled += instance.OnRun; @Op1.started += instance.OnOp1; @Op1.performed += instance.OnOp1; @Op1.canceled += instance.OnOp1; @Op2.started += instance.OnOp2; @Op2.performed += instance.OnOp2; @Op2.canceled += instance.OnOp2; @Use.started += instance.OnUse; @Use.performed += instance.OnUse; @Use.canceled += instance.OnUse; @Use2.started += instance.OnUse2; @Use2.performed += instance.OnUse2; @Use2.canceled += instance.OnUse2; @SelectItem.started += instance.OnSelectItem; @SelectItem.performed += instance.OnSelectItem; @SelectItem.canceled += instance.OnSelectItem; @SelectBait.started += instance.OnSelectBait; @SelectBait.performed += instance.OnSelectBait; @SelectBait.canceled += instance.OnSelectBait; @SelectFood.started += instance.OnSelectFood; @SelectFood.performed += instance.OnSelectFood; @SelectFood.canceled += instance.OnSelectFood; @UseTorch.started += instance.OnUseTorch; @UseTorch.performed += instance.OnUseTorch; @UseTorch.canceled += instance.OnUseTorch; @UseTelescope.started += instance.OnUseTelescope; @UseTelescope.performed += instance.OnUseTelescope; @UseTelescope.canceled += instance.OnUseTelescope; @UseBrail.started += instance.OnUseBrail; @UseBrail.performed += instance.OnUseBrail; @UseBrail.canceled += instance.OnUseBrail; @AddBob.started += instance.OnAddBob; @AddBob.performed += instance.OnAddBob; @AddBob.canceled += instance.OnAddBob; @SubBob.started += instance.OnSubBob; @SubBob.performed += instance.OnSubBob; @SubBob.canceled += instance.OnSubBob; @ToBag.started += instance.OnToBag; @ToBag.performed += instance.OnToBag; @ToBag.canceled += instance.OnToBag; @Help.started += instance.OnHelp; @Help.performed += instance.OnHelp; @Help.canceled += instance.OnHelp; @Chat.started += instance.OnChat; @Chat.performed += instance.OnChat; @Chat.canceled += instance.OnChat; @Info.started += instance.OnInfo; @Info.performed += instance.OnInfo; @Info.canceled += instance.OnInfo; @Skill.started += instance.OnSkill; @Skill.performed += instance.OnSkill; @Skill.canceled += instance.OnSkill; @OpenBag.started += instance.OnOpenBag; @OpenBag.performed += instance.OnOpenBag; @OpenBag.canceled += instance.OnOpenBag; @Keepnet.started += instance.OnKeepnet; @Keepnet.performed += instance.OnKeepnet; @Keepnet.canceled += instance.OnKeepnet; @Make.started += instance.OnMake; @Make.performed += instance.OnMake; @Make.canceled += instance.OnMake; @Map.started += instance.OnMap; @Map.performed += instance.OnMap; @Map.canceled += instance.OnMap; @Quick1.started += instance.OnQuick1; @Quick1.performed += instance.OnQuick1; @Quick1.canceled += instance.OnQuick1; @Quick2.started += instance.OnQuick2; @Quick2.performed += instance.OnQuick2; @Quick2.canceled += instance.OnQuick2; @Quick3.started += instance.OnQuick3; @Quick3.performed += instance.OnQuick3; @Quick3.canceled += instance.OnQuick3; @Quick4.started += instance.OnQuick4; @Quick4.performed += instance.OnQuick4; @Quick4.canceled += instance.OnQuick4; @Quick5.started += instance.OnQuick5; @Quick5.performed += instance.OnQuick5; @Quick5.canceled += instance.OnQuick5; @Quick6.started += instance.OnQuick6; @Quick6.performed += instance.OnQuick6; @Quick6.canceled += instance.OnQuick6; @Quick7.started += instance.OnQuick7; @Quick7.performed += instance.OnQuick7; @Quick7.canceled += instance.OnQuick7; @Quick8.started += instance.OnQuick8; @Quick8.performed += instance.OnQuick8; @Quick8.canceled += instance.OnQuick8; @Quick9.started += instance.OnQuick9; @Quick9.performed += instance.OnQuick9; @Quick9.canceled += instance.OnQuick9; @Back.started += instance.OnBack; @Back.performed += instance.OnBack; @Back.canceled += instance.OnBack; } /// /// Removes , and callbacks provided via on all input actions contained in this map. /// /// /// Calling this method when have not previously been registered has no side-effects. /// /// private void UnregisterCallbacks(INormalActions instance) { @Move.started -= instance.OnMove; @Move.performed -= instance.OnMove; @Move.canceled -= instance.OnMove; @Look.started -= instance.OnLook; @Look.performed -= instance.OnLook; @Look.canceled -= instance.OnLook; @Zoom.started -= instance.OnZoom; @Zoom.performed -= instance.OnZoom; @Zoom.canceled -= instance.OnZoom; @Jump.started -= instance.OnJump; @Jump.performed -= instance.OnJump; @Jump.canceled -= instance.OnJump; @Run.started -= instance.OnRun; @Run.performed -= instance.OnRun; @Run.canceled -= instance.OnRun; @Op1.started -= instance.OnOp1; @Op1.performed -= instance.OnOp1; @Op1.canceled -= instance.OnOp1; @Op2.started -= instance.OnOp2; @Op2.performed -= instance.OnOp2; @Op2.canceled -= instance.OnOp2; @Use.started -= instance.OnUse; @Use.performed -= instance.OnUse; @Use.canceled -= instance.OnUse; @Use2.started -= instance.OnUse2; @Use2.performed -= instance.OnUse2; @Use2.canceled -= instance.OnUse2; @SelectItem.started -= instance.OnSelectItem; @SelectItem.performed -= instance.OnSelectItem; @SelectItem.canceled -= instance.OnSelectItem; @SelectBait.started -= instance.OnSelectBait; @SelectBait.performed -= instance.OnSelectBait; @SelectBait.canceled -= instance.OnSelectBait; @SelectFood.started -= instance.OnSelectFood; @SelectFood.performed -= instance.OnSelectFood; @SelectFood.canceled -= instance.OnSelectFood; @UseTorch.started -= instance.OnUseTorch; @UseTorch.performed -= instance.OnUseTorch; @UseTorch.canceled -= instance.OnUseTorch; @UseTelescope.started -= instance.OnUseTelescope; @UseTelescope.performed -= instance.OnUseTelescope; @UseTelescope.canceled -= instance.OnUseTelescope; @UseBrail.started -= instance.OnUseBrail; @UseBrail.performed -= instance.OnUseBrail; @UseBrail.canceled -= instance.OnUseBrail; @AddBob.started -= instance.OnAddBob; @AddBob.performed -= instance.OnAddBob; @AddBob.canceled -= instance.OnAddBob; @SubBob.started -= instance.OnSubBob; @SubBob.performed -= instance.OnSubBob; @SubBob.canceled -= instance.OnSubBob; @ToBag.started -= instance.OnToBag; @ToBag.performed -= instance.OnToBag; @ToBag.canceled -= instance.OnToBag; @Help.started -= instance.OnHelp; @Help.performed -= instance.OnHelp; @Help.canceled -= instance.OnHelp; @Chat.started -= instance.OnChat; @Chat.performed -= instance.OnChat; @Chat.canceled -= instance.OnChat; @Info.started -= instance.OnInfo; @Info.performed -= instance.OnInfo; @Info.canceled -= instance.OnInfo; @Skill.started -= instance.OnSkill; @Skill.performed -= instance.OnSkill; @Skill.canceled -= instance.OnSkill; @OpenBag.started -= instance.OnOpenBag; @OpenBag.performed -= instance.OnOpenBag; @OpenBag.canceled -= instance.OnOpenBag; @Keepnet.started -= instance.OnKeepnet; @Keepnet.performed -= instance.OnKeepnet; @Keepnet.canceled -= instance.OnKeepnet; @Make.started -= instance.OnMake; @Make.performed -= instance.OnMake; @Make.canceled -= instance.OnMake; @Map.started -= instance.OnMap; @Map.performed -= instance.OnMap; @Map.canceled -= instance.OnMap; @Quick1.started -= instance.OnQuick1; @Quick1.performed -= instance.OnQuick1; @Quick1.canceled -= instance.OnQuick1; @Quick2.started -= instance.OnQuick2; @Quick2.performed -= instance.OnQuick2; @Quick2.canceled -= instance.OnQuick2; @Quick3.started -= instance.OnQuick3; @Quick3.performed -= instance.OnQuick3; @Quick3.canceled -= instance.OnQuick3; @Quick4.started -= instance.OnQuick4; @Quick4.performed -= instance.OnQuick4; @Quick4.canceled -= instance.OnQuick4; @Quick5.started -= instance.OnQuick5; @Quick5.performed -= instance.OnQuick5; @Quick5.canceled -= instance.OnQuick5; @Quick6.started -= instance.OnQuick6; @Quick6.performed -= instance.OnQuick6; @Quick6.canceled -= instance.OnQuick6; @Quick7.started -= instance.OnQuick7; @Quick7.performed -= instance.OnQuick7; @Quick7.canceled -= instance.OnQuick7; @Quick8.started -= instance.OnQuick8; @Quick8.performed -= instance.OnQuick8; @Quick8.canceled -= instance.OnQuick8; @Quick9.started -= instance.OnQuick9; @Quick9.performed -= instance.OnQuick9; @Quick9.canceled -= instance.OnQuick9; @Back.started -= instance.OnBack; @Back.performed -= instance.OnBack; @Back.canceled -= instance.OnBack; } /// /// Unregisters and unregisters all input action callbacks via . /// /// public void RemoveCallbacks(INormalActions instance) { if (m_Wrapper.m_NormalActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } /// /// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via . /// /// /// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks. /// /// /// /// public void SetCallbacks(INormalActions instance) { foreach (var item in m_Wrapper.m_NormalActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_NormalActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } /// /// Provides a new instance referencing this action map. /// public NormalActions @Normal => new NormalActions(this); // UI private readonly InputActionMap m_UI; private List m_UIActionsCallbackInterfaces = new List(); private readonly InputAction m_UI_Roll; /// /// Provides access to input actions defined in input action map "UI". /// public struct UIActions { private @PlayerInputControl m_Wrapper; /// /// Construct a new instance of the input action map wrapper class. /// public UIActions(@PlayerInputControl wrapper) { m_Wrapper = wrapper; } /// /// Provides access to the underlying input action "UI/Roll". /// public InputAction @Roll => m_Wrapper.m_UI_Roll; /// /// Provides access to the underlying input action map instance. /// public InputActionMap Get() { return m_Wrapper.m_UI; } /// public void Enable() { Get().Enable(); } /// public void Disable() { Get().Disable(); } /// public bool enabled => Get().enabled; /// /// Implicitly converts an to an instance. /// public static implicit operator InputActionMap(UIActions set) { return set.Get(); } /// /// Adds , and callbacks provided via on all input actions contained in this map. /// /// Callback instance. /// /// If is null or have already been added this method does nothing. /// /// public void AddCallbacks(IUIActions instance) { if (instance == null || m_Wrapper.m_UIActionsCallbackInterfaces.Contains(instance)) return; m_Wrapper.m_UIActionsCallbackInterfaces.Add(instance); @Roll.started += instance.OnRoll; @Roll.performed += instance.OnRoll; @Roll.canceled += instance.OnRoll; } /// /// Removes , and callbacks provided via on all input actions contained in this map. /// /// /// Calling this method when have not previously been registered has no side-effects. /// /// private void UnregisterCallbacks(IUIActions instance) { @Roll.started -= instance.OnRoll; @Roll.performed -= instance.OnRoll; @Roll.canceled -= instance.OnRoll; } /// /// Unregisters and unregisters all input action callbacks via . /// /// public void RemoveCallbacks(IUIActions instance) { if (m_Wrapper.m_UIActionsCallbackInterfaces.Remove(instance)) UnregisterCallbacks(instance); } /// /// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via . /// /// /// If is null, calling this method will only unregister all existing callbacks but not register any new callbacks. /// /// /// /// public void SetCallbacks(IUIActions instance) { foreach (var item in m_Wrapper.m_UIActionsCallbackInterfaces) UnregisterCallbacks(item); m_Wrapper.m_UIActionsCallbackInterfaces.Clear(); AddCallbacks(instance); } } /// /// Provides a new instance referencing this action map. /// public UIActions @UI => new UIActions(this); private int m_KeyboardMouseSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme KeyboardMouseScheme { get { if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse"); return asset.controlSchemes[m_KeyboardMouseSchemeIndex]; } } private int m_GamepadSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme GamepadScheme { get { if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad"); return asset.controlSchemes[m_GamepadSchemeIndex]; } } private int m_TouchSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme TouchScheme { get { if (m_TouchSchemeIndex == -1) m_TouchSchemeIndex = asset.FindControlSchemeIndex("Touch"); return asset.controlSchemes[m_TouchSchemeIndex]; } } private int m_JoystickSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme JoystickScheme { get { if (m_JoystickSchemeIndex == -1) m_JoystickSchemeIndex = asset.FindControlSchemeIndex("Joystick"); return asset.controlSchemes[m_JoystickSchemeIndex]; } } private int m_XRSchemeIndex = -1; /// /// Provides access to the input control scheme. /// /// public InputControlScheme XRScheme { get { if (m_XRSchemeIndex == -1) m_XRSchemeIndex = asset.FindControlSchemeIndex("XR"); return asset.controlSchemes[m_XRSchemeIndex]; } } /// /// Interface to implement callback methods for all input action callbacks associated with input actions defined by "Normal" which allows adding and removing callbacks. /// /// /// public interface INormalActions { /// /// Method invoked when associated input action "Move" is either , or . /// /// /// /// void OnMove(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Look" is either , or . /// /// /// /// void OnLook(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Zoom" is either , or . /// /// /// /// void OnZoom(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Jump" is either , or . /// /// /// /// void OnJump(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Run" is either , or . /// /// /// /// void OnRun(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Op1" is either , or . /// /// /// /// void OnOp1(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Op2" is either , or . /// /// /// /// void OnOp2(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Use" is either , or . /// /// /// /// void OnUse(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Use2" is either , or . /// /// /// /// void OnUse2(InputAction.CallbackContext context); /// /// Method invoked when associated input action "SelectItem" is either , or . /// /// /// /// void OnSelectItem(InputAction.CallbackContext context); /// /// Method invoked when associated input action "SelectBait" is either , or . /// /// /// /// void OnSelectBait(InputAction.CallbackContext context); /// /// Method invoked when associated input action "SelectFood" is either , or . /// /// /// /// void OnSelectFood(InputAction.CallbackContext context); /// /// Method invoked when associated input action "UseTorch" is either , or . /// /// /// /// void OnUseTorch(InputAction.CallbackContext context); /// /// Method invoked when associated input action "UseTelescope" is either , or . /// /// /// /// void OnUseTelescope(InputAction.CallbackContext context); /// /// Method invoked when associated input action "UseBrail" is either , or . /// /// /// /// void OnUseBrail(InputAction.CallbackContext context); /// /// Method invoked when associated input action "AddBob" is either , or . /// /// /// /// void OnAddBob(InputAction.CallbackContext context); /// /// Method invoked when associated input action "SubBob" is either , or . /// /// /// /// void OnSubBob(InputAction.CallbackContext context); /// /// Method invoked when associated input action "ToBag" is either , or . /// /// /// /// void OnToBag(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Help" is either , or . /// /// /// /// void OnHelp(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Chat" is either , or . /// /// /// /// void OnChat(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Info" is either , or . /// /// /// /// void OnInfo(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Skill" is either , or . /// /// /// /// void OnSkill(InputAction.CallbackContext context); /// /// Method invoked when associated input action "OpenBag" is either , or . /// /// /// /// void OnOpenBag(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Keepnet" is either , or . /// /// /// /// void OnKeepnet(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Make" is either , or . /// /// /// /// void OnMake(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Map" is either , or . /// /// /// /// void OnMap(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick1" is either , or . /// /// /// /// void OnQuick1(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick2" is either , or . /// /// /// /// void OnQuick2(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick3" is either , or . /// /// /// /// void OnQuick3(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick4" is either , or . /// /// /// /// void OnQuick4(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick5" is either , or . /// /// /// /// void OnQuick5(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick6" is either , or . /// /// /// /// void OnQuick6(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick7" is either , or . /// /// /// /// void OnQuick7(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick8" is either , or . /// /// /// /// void OnQuick8(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Quick9" is either , or . /// /// /// /// void OnQuick9(InputAction.CallbackContext context); /// /// Method invoked when associated input action "Back" is either , or . /// /// /// /// void OnBack(InputAction.CallbackContext context); } /// /// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks. /// /// /// public interface IUIActions { /// /// Method invoked when associated input action "Roll" is either , or . /// /// /// /// void OnRoll(InputAction.CallbackContext context); } } }