地图系统
This commit is contained in:
@@ -244,6 +244,15 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Inventory"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""a1b2c3d4-e5f6-7890-abcd-ef1234567890"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -576,6 +585,28 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""action"": ""Spell"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""b2c3d4e5-f6a1-8901-bcde-f12345678901"",
|
||||
""path"": ""<Keyboard>/tab"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""Inventory"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""c3d4e5f6-a1b2-9012-cdef-012345678902"",
|
||||
""path"": ""<Gamepad>/select"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Gamepad"",
|
||||
""action"": ""Inventory"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -681,6 +712,42 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""CycleMinimapZoom"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""d4e5f6a1-b2c3-0123-def0-123456789003"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""MapCenter"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""a1b2c3d4-e5f6-3456-0123-456789000006"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""InventoryTabNext"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""c3d4e5f6-a1b2-5678-2345-678900000008"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""InventoryTabPrev"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""f6a1b2c3-d4e5-8901-5678-900000000011"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -1123,6 +1190,94 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""action"": ""TrackedDeviceOrientation"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000101"",
|
||||
""path"": ""<Keyboard>/m"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""CycleMinimapZoom"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000102"",
|
||||
""path"": ""<Gamepad>/rightStickPress"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Gamepad"",
|
||||
""action"": ""CycleMinimapZoom"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000103"",
|
||||
""path"": ""<Keyboard>/c"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""MapCenter"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000104"",
|
||||
""path"": ""<Gamepad>/buttonNorth"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Gamepad"",
|
||||
""action"": ""MapCenter"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000105"",
|
||||
""path"": ""<Keyboard>/e"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""InventoryTabNext"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000106"",
|
||||
""path"": ""<Gamepad>/rightShoulder"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Gamepad"",
|
||||
""action"": ""InventoryTabNext"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000107"",
|
||||
""path"": ""<Keyboard>/q"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""InventoryTabPrev"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""a1b2c3d4-e5f6-0001-0001-000000000108"",
|
||||
""path"": ""<Gamepad>/leftShoulder"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Gamepad"",
|
||||
""action"": ""InventoryTabPrev"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1176,6 +1331,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
m_Gameplay_Interact = m_Gameplay.FindAction("Interact", throwIfNotFound: true);
|
||||
m_Gameplay_Pause = m_Gameplay.FindAction("Pause", throwIfNotFound: true);
|
||||
m_Gameplay_Spell = m_Gameplay.FindAction("Spell", throwIfNotFound: true);
|
||||
m_Gameplay_Inventory = m_Gameplay.FindAction("Inventory", throwIfNotFound: true);
|
||||
// UI
|
||||
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
|
||||
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
|
||||
@@ -1189,6 +1345,10 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
m_UI_RightClick = m_UI.FindAction("RightClick", throwIfNotFound: true);
|
||||
m_UI_TrackedDevicePosition = m_UI.FindAction("TrackedDevicePosition", throwIfNotFound: true);
|
||||
m_UI_TrackedDeviceOrientation = m_UI.FindAction("TrackedDeviceOrientation", throwIfNotFound: true);
|
||||
m_UI_CycleMinimapZoom = m_UI.FindAction("CycleMinimapZoom", throwIfNotFound: true);
|
||||
m_UI_MapCenter = m_UI.FindAction("MapCenter", throwIfNotFound: true);
|
||||
m_UI_InventoryTabNext = m_UI.FindAction("InventoryTabNext", throwIfNotFound: true);
|
||||
m_UI_InventoryTabPrev = m_UI.FindAction("InventoryTabPrev", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@PlayerInputActions()
|
||||
@@ -1287,6 +1447,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_Gameplay_Interact;
|
||||
private readonly InputAction m_Gameplay_Pause;
|
||||
private readonly InputAction m_Gameplay_Spell;
|
||||
private readonly InputAction m_Gameplay_Inventory;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "Gameplay".
|
||||
/// </summary>
|
||||
@@ -1367,6 +1528,10 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @Spell => m_Wrapper.m_Gameplay_Spell;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "Gameplay/Inventory".
|
||||
/// </summary>
|
||||
public InputAction @Inventory => m_Wrapper.m_Gameplay_Inventory;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_Gameplay; }
|
||||
@@ -1443,6 +1608,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Spell.started += instance.OnSpell;
|
||||
@Spell.performed += instance.OnSpell;
|
||||
@Spell.canceled += instance.OnSpell;
|
||||
@Inventory.started += instance.OnInventory;
|
||||
@Inventory.performed += instance.OnInventory;
|
||||
@Inventory.canceled += instance.OnInventory;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1505,6 +1673,9 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Spell.started -= instance.OnSpell;
|
||||
@Spell.performed -= instance.OnSpell;
|
||||
@Spell.canceled -= instance.OnSpell;
|
||||
@Inventory.started -= instance.OnInventory;
|
||||
@Inventory.performed -= instance.OnInventory;
|
||||
@Inventory.canceled -= instance.OnInventory;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1553,6 +1724,10 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_UI_RightClick;
|
||||
private readonly InputAction m_UI_TrackedDevicePosition;
|
||||
private readonly InputAction m_UI_TrackedDeviceOrientation;
|
||||
private readonly InputAction m_UI_CycleMinimapZoom;
|
||||
private readonly InputAction m_UI_MapCenter;
|
||||
private readonly InputAction m_UI_InventoryTabNext;
|
||||
private readonly InputAction m_UI_InventoryTabPrev;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "UI".
|
||||
/// </summary>
|
||||
@@ -1609,6 +1784,22 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @TrackedDeviceOrientation => m_Wrapper.m_UI_TrackedDeviceOrientation;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "UI/CycleMinimapZoom".
|
||||
/// </summary>
|
||||
public InputAction @CycleMinimapZoom => m_Wrapper.m_UI_CycleMinimapZoom;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "UI/MapCenter".
|
||||
/// </summary>
|
||||
public InputAction @MapCenter => m_Wrapper.m_UI_MapCenter;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "UI/InventoryTabNext".
|
||||
/// </summary>
|
||||
public InputAction @InventoryTabNext => m_Wrapper.m_UI_InventoryTabNext;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "UI/InventoryTabPrev".
|
||||
/// </summary>
|
||||
public InputAction @InventoryTabPrev => m_Wrapper.m_UI_InventoryTabPrev;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_UI; }
|
||||
@@ -1667,6 +1858,18 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@TrackedDeviceOrientation.started += instance.OnTrackedDeviceOrientation;
|
||||
@TrackedDeviceOrientation.performed += instance.OnTrackedDeviceOrientation;
|
||||
@TrackedDeviceOrientation.canceled += instance.OnTrackedDeviceOrientation;
|
||||
@CycleMinimapZoom.started += instance.OnCycleMinimapZoom;
|
||||
@CycleMinimapZoom.performed += instance.OnCycleMinimapZoom;
|
||||
@CycleMinimapZoom.canceled += instance.OnCycleMinimapZoom;
|
||||
@MapCenter.started += instance.OnMapCenter;
|
||||
@MapCenter.performed += instance.OnMapCenter;
|
||||
@MapCenter.canceled += instance.OnMapCenter;
|
||||
@InventoryTabNext.started += instance.OnInventoryTabNext;
|
||||
@InventoryTabNext.performed += instance.OnInventoryTabNext;
|
||||
@InventoryTabNext.canceled += instance.OnInventoryTabNext;
|
||||
@InventoryTabPrev.started += instance.OnInventoryTabPrev;
|
||||
@InventoryTabPrev.performed += instance.OnInventoryTabPrev;
|
||||
@InventoryTabPrev.canceled += instance.OnInventoryTabPrev;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1711,6 +1914,18 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@TrackedDeviceOrientation.started -= instance.OnTrackedDeviceOrientation;
|
||||
@TrackedDeviceOrientation.performed -= instance.OnTrackedDeviceOrientation;
|
||||
@TrackedDeviceOrientation.canceled -= instance.OnTrackedDeviceOrientation;
|
||||
@CycleMinimapZoom.started -= instance.OnCycleMinimapZoom;
|
||||
@CycleMinimapZoom.performed -= instance.OnCycleMinimapZoom;
|
||||
@CycleMinimapZoom.canceled -= instance.OnCycleMinimapZoom;
|
||||
@MapCenter.started -= instance.OnMapCenter;
|
||||
@MapCenter.performed -= instance.OnMapCenter;
|
||||
@MapCenter.canceled -= instance.OnMapCenter;
|
||||
@InventoryTabNext.started -= instance.OnInventoryTabNext;
|
||||
@InventoryTabNext.performed -= instance.OnInventoryTabNext;
|
||||
@InventoryTabNext.canceled -= instance.OnInventoryTabNext;
|
||||
@InventoryTabPrev.started -= instance.OnInventoryTabPrev;
|
||||
@InventoryTabPrev.performed -= instance.OnInventoryTabPrev;
|
||||
@InventoryTabPrev.canceled -= instance.OnInventoryTabPrev;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -1896,6 +2111,13 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnSpell(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Inventory" 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 OnInventory(InputAction.CallbackContext context);
|
||||
}
|
||||
/// <summary>
|
||||
/// Interface to implement callback methods for all input action callbacks associated with input actions defined by "UI" which allows adding and removing callbacks.
|
||||
@@ -1981,5 +2203,33 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnTrackedDeviceOrientation(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "CycleMinimapZoom" 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 OnCycleMinimapZoom(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "MapCenter" 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 OnMapCenter(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "InventoryTabNext" 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 OnInventoryTabNext(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "InventoryTabPrev" 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 OnInventoryTabPrev(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user