542 lines
22 KiB
C#
542 lines
22 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|
// version 1.7.0
|
|
// from Assets/Input/PlayerControlsActionMap.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 @PlayerControlsActionMap: IInputActionCollection2, IDisposable
|
|
{
|
|
public InputActionAsset asset { get; }
|
|
public @PlayerControlsActionMap()
|
|
{
|
|
asset = InputActionAsset.FromJson(@"{
|
|
""name"": ""PlayerControlsActionMap"",
|
|
""maps"": [
|
|
{
|
|
""name"": ""PlayerLand"",
|
|
""id"": ""b8fdd704-8160-4cf9-8570-7cacc2d9b7f1"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""e01f7ba6-2102-466d-b0dc-acbf173e5394"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Look"",
|
|
""type"": ""Value"",
|
|
""id"": ""e9deaac0-8654-420b-aa03-a942039ba697"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Jump"",
|
|
""type"": ""Button"",
|
|
""id"": ""f93d31db-c1c8-4baf-86af-0bbbb78aadff"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Slide"",
|
|
""type"": ""Button"",
|
|
""id"": ""b921e335-e6c5-471d-bd28-0099fc95d844"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Crouch"",
|
|
""type"": ""Button"",
|
|
""id"": ""351d2ab1-268c-4f13-83dd-faa577ba4a44"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Sprint"",
|
|
""type"": ""Button"",
|
|
""id"": ""d7b2e90f-f0e3-41b2-9a87-9f60bf1849ba"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Interact"",
|
|
""type"": ""Button"",
|
|
""id"": ""b30bd6d9-c074-4d08-91af-562d07611ee3"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Fire"",
|
|
""type"": ""Button"",
|
|
""id"": ""9c9bcad6-e2e3-47e5-8f8e-e746952e2d04"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Aim"",
|
|
""type"": ""Button"",
|
|
""id"": ""5346497b-cd92-42da-b103-404a84ab9022"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""ChangeFireMode"",
|
|
""type"": ""Button"",
|
|
""id"": ""781d0d0d-b03b-4002-8481-462b9cd9f0b8"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Reload"",
|
|
""type"": ""Button"",
|
|
""id"": ""b8202e6d-e8d7-45ff-a2c0-201b5fdc077e"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""WeaponSwitch"",
|
|
""type"": ""Value"",
|
|
""id"": ""15a7ebb5-06cd-47d6-a4ee-41dd98540707"",
|
|
""expectedControlType"": ""Axis"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": ""WASD"",
|
|
""id"": ""566a6d78-d631-444b-849d-1a6807725f11"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""6899681f-e684-4b64-9ac1-ca1f3295084b"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""f057adcb-a8ca-413e-b817-50210a9519c5"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""1fea1973-6a1f-4b03-b368-f133ba2e3207"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""183ffab9-e7b5-4725-8f86-f5ebffacac5b"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a4de7aee-17ad-42da-b998-3e6786f539bd"",
|
|
""path"": ""<Mouse>/delta"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Look"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a9050587-3397-4943-a2f5-2460d569e3a9"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Jump"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""00627db1-8aba-4583-bbf2-542aa494d173"",
|
|
""path"": ""<Keyboard>/c"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Slide"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""be6d075a-d6bc-4050-87ba-d956df16d093"",
|
|
""path"": ""<Keyboard>/c"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Crouch"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""52a1ffad-ac6f-4cbe-abe1-d7372f0d63a9"",
|
|
""path"": ""<Keyboard>/leftShift"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Sprint"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5bcaa323-ef69-4074-80f3-369270c8bed9"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Interact"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""1a0db5ee-31f1-4c2c-9cd1-a0f12a1e2d34"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Fire"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a58caf43-d923-4bca-aeed-f6e3f9d3b6f8"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Aim"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""258526fe-ed3e-4f48-b1a4-95d729837ef3"",
|
|
""path"": ""<Keyboard>/b"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""ChangeFireMode"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c209559d-315b-45b7-9fdc-ea9989cb6b91"",
|
|
""path"": ""<Keyboard>/r"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Reload"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""38768f81-c209-4f6c-a5eb-67533f5bcbcd"",
|
|
""path"": ""<Mouse>/scroll/y"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""WeaponSwitch"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
""controlSchemes"": []
|
|
}");
|
|
// PlayerLand
|
|
m_PlayerLand = asset.FindActionMap("PlayerLand", throwIfNotFound: true);
|
|
m_PlayerLand_Move = m_PlayerLand.FindAction("Move", throwIfNotFound: true);
|
|
m_PlayerLand_Look = m_PlayerLand.FindAction("Look", throwIfNotFound: true);
|
|
m_PlayerLand_Jump = m_PlayerLand.FindAction("Jump", throwIfNotFound: true);
|
|
m_PlayerLand_Slide = m_PlayerLand.FindAction("Slide", throwIfNotFound: true);
|
|
m_PlayerLand_Crouch = m_PlayerLand.FindAction("Crouch", throwIfNotFound: true);
|
|
m_PlayerLand_Sprint = m_PlayerLand.FindAction("Sprint", throwIfNotFound: true);
|
|
m_PlayerLand_Interact = m_PlayerLand.FindAction("Interact", throwIfNotFound: true);
|
|
m_PlayerLand_Fire = m_PlayerLand.FindAction("Fire", throwIfNotFound: true);
|
|
m_PlayerLand_Aim = m_PlayerLand.FindAction("Aim", throwIfNotFound: true);
|
|
m_PlayerLand_ChangeFireMode = m_PlayerLand.FindAction("ChangeFireMode", throwIfNotFound: true);
|
|
m_PlayerLand_Reload = m_PlayerLand.FindAction("Reload", throwIfNotFound: true);
|
|
m_PlayerLand_WeaponSwitch = m_PlayerLand.FindAction("WeaponSwitch", 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);
|
|
}
|
|
|
|
// PlayerLand
|
|
private readonly InputActionMap m_PlayerLand;
|
|
private List<IPlayerLandActions> m_PlayerLandActionsCallbackInterfaces = new List<IPlayerLandActions>();
|
|
private readonly InputAction m_PlayerLand_Move;
|
|
private readonly InputAction m_PlayerLand_Look;
|
|
private readonly InputAction m_PlayerLand_Jump;
|
|
private readonly InputAction m_PlayerLand_Slide;
|
|
private readonly InputAction m_PlayerLand_Crouch;
|
|
private readonly InputAction m_PlayerLand_Sprint;
|
|
private readonly InputAction m_PlayerLand_Interact;
|
|
private readonly InputAction m_PlayerLand_Fire;
|
|
private readonly InputAction m_PlayerLand_Aim;
|
|
private readonly InputAction m_PlayerLand_ChangeFireMode;
|
|
private readonly InputAction m_PlayerLand_Reload;
|
|
private readonly InputAction m_PlayerLand_WeaponSwitch;
|
|
public struct PlayerLandActions
|
|
{
|
|
private @PlayerControlsActionMap m_Wrapper;
|
|
public PlayerLandActions(@PlayerControlsActionMap wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Move => m_Wrapper.m_PlayerLand_Move;
|
|
public InputAction @Look => m_Wrapper.m_PlayerLand_Look;
|
|
public InputAction @Jump => m_Wrapper.m_PlayerLand_Jump;
|
|
public InputAction @Slide => m_Wrapper.m_PlayerLand_Slide;
|
|
public InputAction @Crouch => m_Wrapper.m_PlayerLand_Crouch;
|
|
public InputAction @Sprint => m_Wrapper.m_PlayerLand_Sprint;
|
|
public InputAction @Interact => m_Wrapper.m_PlayerLand_Interact;
|
|
public InputAction @Fire => m_Wrapper.m_PlayerLand_Fire;
|
|
public InputAction @Aim => m_Wrapper.m_PlayerLand_Aim;
|
|
public InputAction @ChangeFireMode => m_Wrapper.m_PlayerLand_ChangeFireMode;
|
|
public InputAction @Reload => m_Wrapper.m_PlayerLand_Reload;
|
|
public InputAction @WeaponSwitch => m_Wrapper.m_PlayerLand_WeaponSwitch;
|
|
public InputActionMap Get() { return m_Wrapper.m_PlayerLand; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(PlayerLandActions set) { return set.Get(); }
|
|
public void AddCallbacks(IPlayerLandActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_PlayerLandActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_PlayerLandActionsCallbackInterfaces.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;
|
|
@Jump.started += instance.OnJump;
|
|
@Jump.performed += instance.OnJump;
|
|
@Jump.canceled += instance.OnJump;
|
|
@Slide.started += instance.OnSlide;
|
|
@Slide.performed += instance.OnSlide;
|
|
@Slide.canceled += instance.OnSlide;
|
|
@Crouch.started += instance.OnCrouch;
|
|
@Crouch.performed += instance.OnCrouch;
|
|
@Crouch.canceled += instance.OnCrouch;
|
|
@Sprint.started += instance.OnSprint;
|
|
@Sprint.performed += instance.OnSprint;
|
|
@Sprint.canceled += instance.OnSprint;
|
|
@Interact.started += instance.OnInteract;
|
|
@Interact.performed += instance.OnInteract;
|
|
@Interact.canceled += instance.OnInteract;
|
|
@Fire.started += instance.OnFire;
|
|
@Fire.performed += instance.OnFire;
|
|
@Fire.canceled += instance.OnFire;
|
|
@Aim.started += instance.OnAim;
|
|
@Aim.performed += instance.OnAim;
|
|
@Aim.canceled += instance.OnAim;
|
|
@ChangeFireMode.started += instance.OnChangeFireMode;
|
|
@ChangeFireMode.performed += instance.OnChangeFireMode;
|
|
@ChangeFireMode.canceled += instance.OnChangeFireMode;
|
|
@Reload.started += instance.OnReload;
|
|
@Reload.performed += instance.OnReload;
|
|
@Reload.canceled += instance.OnReload;
|
|
@WeaponSwitch.started += instance.OnWeaponSwitch;
|
|
@WeaponSwitch.performed += instance.OnWeaponSwitch;
|
|
@WeaponSwitch.canceled += instance.OnWeaponSwitch;
|
|
}
|
|
|
|
private void UnregisterCallbacks(IPlayerLandActions 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;
|
|
@Jump.started -= instance.OnJump;
|
|
@Jump.performed -= instance.OnJump;
|
|
@Jump.canceled -= instance.OnJump;
|
|
@Slide.started -= instance.OnSlide;
|
|
@Slide.performed -= instance.OnSlide;
|
|
@Slide.canceled -= instance.OnSlide;
|
|
@Crouch.started -= instance.OnCrouch;
|
|
@Crouch.performed -= instance.OnCrouch;
|
|
@Crouch.canceled -= instance.OnCrouch;
|
|
@Sprint.started -= instance.OnSprint;
|
|
@Sprint.performed -= instance.OnSprint;
|
|
@Sprint.canceled -= instance.OnSprint;
|
|
@Interact.started -= instance.OnInteract;
|
|
@Interact.performed -= instance.OnInteract;
|
|
@Interact.canceled -= instance.OnInteract;
|
|
@Fire.started -= instance.OnFire;
|
|
@Fire.performed -= instance.OnFire;
|
|
@Fire.canceled -= instance.OnFire;
|
|
@Aim.started -= instance.OnAim;
|
|
@Aim.performed -= instance.OnAim;
|
|
@Aim.canceled -= instance.OnAim;
|
|
@ChangeFireMode.started -= instance.OnChangeFireMode;
|
|
@ChangeFireMode.performed -= instance.OnChangeFireMode;
|
|
@ChangeFireMode.canceled -= instance.OnChangeFireMode;
|
|
@Reload.started -= instance.OnReload;
|
|
@Reload.performed -= instance.OnReload;
|
|
@Reload.canceled -= instance.OnReload;
|
|
@WeaponSwitch.started -= instance.OnWeaponSwitch;
|
|
@WeaponSwitch.performed -= instance.OnWeaponSwitch;
|
|
@WeaponSwitch.canceled -= instance.OnWeaponSwitch;
|
|
}
|
|
|
|
public void RemoveCallbacks(IPlayerLandActions instance)
|
|
{
|
|
if (m_Wrapper.m_PlayerLandActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(IPlayerLandActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_PlayerLandActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_PlayerLandActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public PlayerLandActions @PlayerLand => new PlayerLandActions(this);
|
|
public interface IPlayerLandActions
|
|
{
|
|
void OnMove(InputAction.CallbackContext context);
|
|
void OnLook(InputAction.CallbackContext context);
|
|
void OnJump(InputAction.CallbackContext context);
|
|
void OnSlide(InputAction.CallbackContext context);
|
|
void OnCrouch(InputAction.CallbackContext context);
|
|
void OnSprint(InputAction.CallbackContext context);
|
|
void OnInteract(InputAction.CallbackContext context);
|
|
void OnFire(InputAction.CallbackContext context);
|
|
void OnAim(InputAction.CallbackContext context);
|
|
void OnChangeFireMode(InputAction.CallbackContext context);
|
|
void OnReload(InputAction.CallbackContext context);
|
|
void OnWeaponSwitch(InputAction.CallbackContext context);
|
|
}
|
|
}
|