Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
- // version 1.3.0
- // from Assets/Input/PlayerInput.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;
- public partial class @PlayerInput : IInputActionCollection2, IDisposable
- {
- public InputActionAsset asset { get; }
- public @PlayerInput()
- {
- asset = InputActionAsset.FromJson(@"{
- ""name"": ""PlayerInput"",
- ""maps"": [
- {
- ""name"": ""onFoot"",
- ""id"": ""b1d17cea-a13a-4d26-bb84-3444f6452b18"",
- ""actions"": [
- {
- ""name"": ""Movement"",
- ""type"": ""Value"",
- ""id"": ""0af62df4-a313-4b1d-bc71-c08d8d68de70"",
- ""expectedControlType"": ""Vector2"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": true
- },
- {
- ""name"": ""Jump"",
- ""type"": ""Button"",
- ""id"": ""e0f4fdaf-348a-498b-a715-4b90d5cd5575"",
- ""expectedControlType"": ""Button"",
- ""processors"": """",
- ""interactions"": """",
- ""initialStateCheck"": false
- }
- ],
- ""bindings"": [
- {
- ""name"": ""WASD"",
- ""id"": ""626c081b-e6a9-401b-964c-1f76d3c9f3dc"",
- ""path"": ""2DVector"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Movement"",
- ""isComposite"": true,
- ""isPartOfComposite"": false
- },
- {
- ""name"": ""up"",
- ""id"": ""d352314e-7bf4-4178-b5bb-4c88a529d2dc"",
- ""path"": ""<Keyboard>/w"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""down"",
- ""id"": ""29891aec-0ed4-4c5a-bfb1-24a6ce0d1213"",
- ""path"": ""<Keyboard>/s"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""left"",
- ""id"": ""27700b56-0e75-49e9-b8ef-5b1725fb660f"",
- ""path"": ""<Keyboard>/a"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": ""right"",
- ""id"": ""95be9686-a6b9-4918-9997-29f4bbbf807d"",
- ""path"": ""<Keyboard>/d"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Movement"",
- ""isComposite"": false,
- ""isPartOfComposite"": true
- },
- {
- ""name"": """",
- ""id"": ""fc6ca4ef-2ed9-4062-9677-d1088951764b"",
- ""path"": ""<Keyboard>/space"",
- ""interactions"": """",
- ""processors"": """",
- ""groups"": """",
- ""action"": ""Jump"",
- ""isComposite"": false,
- ""isPartOfComposite"": false
- }
- ]
- }
- ],
- ""controlSchemes"": []
- }");
- // onFoot
- m_onFoot = asset.FindActionMap("onFoot", throwIfNotFound: true);
- m_onFoot_Movement = m_onFoot.FindAction("Movement", throwIfNotFound: true);
- m_onFoot_Jump = m_onFoot.FindAction("Jump", throwIfNotFound: true);
- }
- public void Dispose()
- {
- UnityEngine.Object.Destroy(asset);
- }
- public InputBinding? bindingMask
- {
- get => asset.bindingMask;
- set => asset.bindingMask = value;
- }
- public ReadOnlyArray<InputDevice>? devices
- {
- get => asset.devices;
- set => asset.devices = value;
- }
- public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;
- public bool Contains(InputAction action)
- {
- return asset.Contains(action);
- }
- public IEnumerator<InputAction> GetEnumerator()
- {
- return asset.GetEnumerator();
- }
- IEnumerator IEnumerable.GetEnumerator()
- {
- return GetEnumerator();
- }
- public void Enable()
- {
- asset.Enable();
- }
- public void Disable()
- {
- asset.Disable();
- }
- public IEnumerable<InputBinding> 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);
- }
- // onFoot
- private readonly InputActionMap m_onFoot;
- private IOnFootActions m_OnFootActionsCallbackInterface;
- private readonly InputAction m_onFoot_Movement;
- private readonly InputAction m_onFoot_Jump;
- public struct OnFootActions
- {
- private @PlayerInput m_Wrapper;
- public OnFootActions(@PlayerInput wrapper) { m_Wrapper = wrapper; }
- public InputAction @Movement => m_Wrapper.m_onFoot_Movement;
- public InputAction @Jump => m_Wrapper.m_onFoot_Jump;
- public InputActionMap Get() { return m_Wrapper.m_onFoot; }
- public void Enable() => Get().Enable();
- public void Disable() { Get().Disable(); }
- public bool enabled => Get().enabled;
- public static implicit operator InputActionMap(OnFootActions set) { return set.Get(); }
- public void SetCallbacks(IOnFootActions instance)
- {
- if (m_Wrapper.m_OnFootActionsCallbackInterface != null)
- {
- @Movement.started -= m_Wrapper.m_OnFootActionsCallbackInterface.OnMovement;
- @Movement.performed -= m_Wrapper.m_OnFootActionsCallbackInterface.OnMovement;
- @Movement.canceled -= m_Wrapper.m_OnFootActionsCallbackInterface.OnMovement;
- @Jump.started -= m_Wrapper.m_OnFootActionsCallbackInterface.OnJump;
- @Jump.performed -= m_Wrapper.m_OnFootActionsCallbackInterface.OnJump;
- @Jump.canceled -= m_Wrapper.m_OnFootActionsCallbackInterface.OnJump;
- }
- m_Wrapper.m_OnFootActionsCallbackInterface = instance;
- if (instance != null)
- {
- @Movement.started += instance.OnMovement;
- @Movement.performed += instance.OnMovement;
- @Movement.canceled += instance.OnMovement;
- @Jump.started += instance.OnJump;
- @Jump.performed += instance.OnJump;
- @Jump.canceled += instance.OnJump;
- }
- }
- }
- public OnFootActions @onFoot => new OnFootActions(this);
- public interface IOnFootActions
- {
- void OnMovement(InputAction.CallbackContext context);
- void OnJump(InputAction.CallbackContext context);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement