+ UiManager의 CombatUi, OceanUi 모두 분리 각각의 씬에서 CombatUiManager, OceanUiManager로 변경 + Ocean, OceanUi input action map 추가 및 변경 input action map, uiManager 변경에 따른 Player input 로직 변경 + CombatPlayer가 죽으면 GameOverUi 추가 + 재시작 기능 추가 + 인벤토리 Ui 수정 + 슬라임 보스 로직 및 애니메이션 수정
1534 lines
66 KiB
C#
1534 lines
66 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator
|
|
// version 1.7.0
|
|
// from Assets/02.Scripts/BlueWater.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 @BlueWater: IInputActionCollection2, IDisposable
|
|
{
|
|
public InputActionAsset asset { get; }
|
|
public @BlueWater()
|
|
{
|
|
asset = InputActionAsset.FromJson(@"{
|
|
""name"": ""BlueWater"",
|
|
""maps"": [
|
|
{
|
|
""name"": ""Player"",
|
|
""id"": ""9fe03cc1-5cd3-4b79-a95e-461613cb242e"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""e46165d9-8066-4400-8950-9b7d4bb9ca75"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""AssaultMode"",
|
|
""type"": ""Button"",
|
|
""id"": ""7d9814fb-48e0-4717-91c3-0c7b7d99972c"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Interaction"",
|
|
""type"": ""Button"",
|
|
""id"": ""367e7267-d329-439d-9806-5e960b8114b5"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""InteractionHold"",
|
|
""type"": ""Button"",
|
|
""id"": ""a28fe5f5-b2a2-4794-8f99-fa2494aedfc3"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold(duration=1)"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Zkey"",
|
|
""type"": ""Button"",
|
|
""id"": ""548e1aff-2de9-4dcc-8fe3-6c20ee0e74d4"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""TakeAim"",
|
|
""type"": ""Button"",
|
|
""id"": ""e520b814-2e0b-4d05-853e-ac1a35bb6b51"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Cancel"",
|
|
""type"": ""Button"",
|
|
""id"": ""c8a82170-8a07-4432-b22f-9ec40486ed27"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Targeting"",
|
|
""type"": ""Button"",
|
|
""id"": ""bb26b6ad-feae-49d8-a4d8-3633bcabfcab"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Tap"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""TargetingHold"",
|
|
""type"": ""Button"",
|
|
""id"": ""c3e552b9-a9be-4d38-8cde-27cc60f7888f"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold(duration=1)"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""CancelHold"",
|
|
""type"": ""Button"",
|
|
""id"": ""b5508379-f9b3-45f9-ba2e-c16fb67bb36a"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold(duration=1)"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Attack"",
|
|
""type"": ""Button"",
|
|
""id"": ""5042e547-e870-4479-8263-b143f4d03597"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""ShiftKey"",
|
|
""type"": ""Button"",
|
|
""id"": ""6e363e5e-d384-4b7e-a9df-91159f5523ad"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""BuildMode"",
|
|
""type"": ""Button"",
|
|
""id"": ""c66de4c8-5638-4085-9856-105d2d2af71b"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Esc"",
|
|
""type"": ""Button"",
|
|
""id"": ""4984fb85-de31-4918-9a06-61edbd3502e8"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": ""WASD"",
|
|
""id"": ""4dc5b54c-0e59-461e-a12d-470900925a36"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""07083b18-8b38-4c90-ae78-28c2927a5f82"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""3b75699e-1063-4230-9ac3-95292c44d2bd"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""6bdc290d-3bc8-4e00-b868-1977d3f2267d"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""03206e08-b0b8-4a95-9bf8-a3e4fd10d4db"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""8e9091c9-b649-4709-bae7-3ca464124529"",
|
|
""path"": ""<Keyboard>/v"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""AssaultMode"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""334d8c88-f0ee-43d9-b62d-a1fdbd1bc338"",
|
|
""path"": ""<Keyboard>/e"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Interaction"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""df7a5259-c313-4b14-9cca-9e1acfc0a31a"",
|
|
""path"": ""<Keyboard>/e"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""InteractionHold"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3db50dad-5cf1-4778-a8a6-27a83398045b"",
|
|
""path"": ""<Keyboard>/z"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Zkey"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""74928808-e5f4-4341-997b-0c0b40aa4b4a"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""TakeAim"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""f3c7c6ff-93c4-4bfe-9039-804d7c340f52"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Cancel"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""671ada78-e8be-4dcf-80af-2c4468d01253"",
|
|
""path"": ""<Keyboard>/q"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Targeting"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""d05dfab0-611f-4f60-b424-f14d98636c55"",
|
|
""path"": ""<Keyboard>/q"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""TargetingHold"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3e2f42b7-0dd3-4c8b-bdd5-9be3254465c0"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""CancelHold"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""bb845af5-adc5-4848-b4a8-ceb3508cd585"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c5b5e8bc-aca9-40bb-8e57-6bb1349f08d0"",
|
|
""path"": ""<Keyboard>/k"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""8d33ba7e-c3f4-4c6d-bd6a-11a48f13fdb6"",
|
|
""path"": ""<Keyboard>/shift"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""ShiftKey"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""3d467a6e-a464-4bbb-b64f-e3317989fb87"",
|
|
""path"": ""<Keyboard>/r"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""BuildMode"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""9eacb0a0-9492-4531-9579-743e48d41b7e"",
|
|
""path"": ""<Keyboard>/escape"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Esc"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Camera"",
|
|
""id"": ""06b461c0-220a-44f8-a03e-0302537ffe0c"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Zoom"",
|
|
""type"": ""Value"",
|
|
""id"": ""26cdda4e-9797-43df-a511-7745f1de2567"",
|
|
""expectedControlType"": ""Axis"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Rotate"",
|
|
""type"": ""Button"",
|
|
""id"": ""d9db46b6-0228-4e7f-8b51-53cae3ccc330"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": """",
|
|
""id"": ""6cbe83f3-bb32-4b85-9419-f88897bd4fc4"",
|
|
""path"": ""<Mouse>/scroll/y"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Zoom"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""e68715cb-964b-4648-9cef-3afefbe84441"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Rotate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""4bc83c87-5345-4fb2-b39a-ac975f7bf47e"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Rotate"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Ocean"",
|
|
""id"": ""b1d3abc9-6ca4-4c0f-a9c3-db8fd683f7c3"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""67bfec04-e227-486b-b9a6-76c7dd885dcf"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""ShipBoost"",
|
|
""type"": ""Button"",
|
|
""id"": ""9e3ca776-4180-4ed4-9b93-912ce0040a12"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""HandleCannonLaunch"",
|
|
""type"": ""Button"",
|
|
""id"": ""2da9d549-9cb5-4226-9997-663a2b260f3b"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""ToggleLaunchMode"",
|
|
""type"": ""Button"",
|
|
""id"": ""94cfe30f-142f-421e-ac6c-5c7c67e412ad"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""CancelHold"",
|
|
""type"": ""Button"",
|
|
""id"": ""09a3f5df-e920-42fd-b7ff-6270ba8d2a5a"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": ""Hold(duration=1)"",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""OpenItemInventory"",
|
|
""type"": ""Button"",
|
|
""id"": ""7599a756-4403-4fc2-954a-c177dde6cfd0"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": ""WASD"",
|
|
""id"": ""b77a8019-1df5-4ed5-9e9f-32cad21c709a"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""4e96c00b-3a97-4ebe-bb91-e359f9cbb258"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""f80c2f4a-6807-43e6-87bd-81b6c8f5b1ef"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""0918dbc6-5f09-425f-8159-5758d23f2d38"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""f1945a0c-a660-431e-93ae-bd8dad361fc7"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""66e86ba2-d9d2-4d0b-8060-96ad0d191de7"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""HandleCannonLaunch"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""5d84ecd2-06d2-4632-9fd8-5c02c7d7d8ce"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""ToggleLaunchMode"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""07cc8c59-38df-4c23-a43a-1e105479fb4b"",
|
|
""path"": ""<Keyboard>/f"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""CancelHold"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a1aa7408-f7ca-439a-8fec-8acfe5b0e9cb"",
|
|
""path"": ""<Keyboard>/i"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""OpenItemInventory"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""f22421e8-4fe1-4c7d-9a10-c4caccf8cac2"",
|
|
""path"": ""<Keyboard>/shift"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""ShipBoost"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""OceanUi"",
|
|
""id"": ""363ea7eb-2dd1-4e1a-8636-0c0045e59355"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Cancel"",
|
|
""type"": ""Button"",
|
|
""id"": ""0bd83ae0-d0f0-4908-816f-d546a142bd45"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""CloseItemInventory"",
|
|
""type"": ""Button"",
|
|
""id"": ""093627e8-52f3-4c7e-ab67-077d16b7e665"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": """",
|
|
""id"": ""ead9149b-b55d-4a91-a23d-fca10e8d925a"",
|
|
""path"": ""<Keyboard>/escape"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Cancel"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""bbdb2092-10d3-4ae3-8075-3c4c51c58809"",
|
|
""path"": ""<Keyboard>/i"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""CloseItemInventory"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Combat"",
|
|
""id"": ""fcad259b-ca44-46e3-b008-1297fa7be828"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Move"",
|
|
""type"": ""Value"",
|
|
""id"": ""4714fdf1-f399-40c7-b623-660c9bfff052"",
|
|
""expectedControlType"": ""Vector2"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": true
|
|
},
|
|
{
|
|
""name"": ""Attack"",
|
|
""type"": ""Button"",
|
|
""id"": ""5ff50411-308e-490e-acb2-e1001785169d"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""Dash"",
|
|
""type"": ""Button"",
|
|
""id"": ""07c70113-456d-4ae6-a273-92bfa09153c2"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""ActivateMainSkill"",
|
|
""type"": ""Button"",
|
|
""id"": ""baf777af-1b73-43bf-af41-5b0b4b4e17a5"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""OpenItemInventory"",
|
|
""type"": ""Button"",
|
|
""id"": ""2248f901-1467-4f42-993e-187a6e0f8673"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": ""WASD"",
|
|
""id"": ""362fb18c-8b50-4fcd-9bc9-9fcab5fd2ce5"",
|
|
""path"": ""2DVector"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": """",
|
|
""action"": ""Move"",
|
|
""isComposite"": true,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": ""up"",
|
|
""id"": ""36746c9d-eca6-4ff8-bcec-2d658d907744"",
|
|
""path"": ""<Keyboard>/w"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""down"",
|
|
""id"": ""8420a87e-ccc1-4940-addd-1516ac2896af"",
|
|
""path"": ""<Keyboard>/s"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""left"",
|
|
""id"": ""6ac0b570-a29a-40f9-b039-c4085ef669a8"",
|
|
""path"": ""<Keyboard>/a"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": ""right"",
|
|
""id"": ""975926ee-895b-4858-b17d-c8ccc3142fb4"",
|
|
""path"": ""<Keyboard>/d"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Move"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": true
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""17f1b73a-900f-477d-b3aa-2cfc0335591f"",
|
|
""path"": ""<Mouse>/leftButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""acdb5d7e-efe0-4c9a-9c7c-c6810fc37c72"",
|
|
""path"": ""<Keyboard>/k"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Attack"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""4a22ea68-00e5-46bf-b622-b6ceb0351141"",
|
|
""path"": ""<Keyboard>/space"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Dash"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""c6e279c5-9d30-43fa-b4ab-baacff979160"",
|
|
""path"": ""<Mouse>/rightButton"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""ActivateMainSkill"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""a6310b05-6f93-471c-9ceb-53d5cde297b2"",
|
|
""path"": ""<Keyboard>/i"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""OpenItemInventory"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""CombatUi"",
|
|
""id"": ""8cf7d346-163b-432f-ab7a-d2eeeb534f3a"",
|
|
""actions"": [
|
|
{
|
|
""name"": ""Cancel"",
|
|
""type"": ""Button"",
|
|
""id"": ""e7d49d7a-f0a9-48a3-ace4-22f003f58f96"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
},
|
|
{
|
|
""name"": ""CloseItemInventory"",
|
|
""type"": ""Button"",
|
|
""id"": ""92659d92-5f25-4712-8a45-d7b527ac56a9"",
|
|
""expectedControlType"": ""Button"",
|
|
""processors"": """",
|
|
""interactions"": """",
|
|
""initialStateCheck"": false
|
|
}
|
|
],
|
|
""bindings"": [
|
|
{
|
|
""name"": """",
|
|
""id"": ""4318851f-7934-4e8f-95a9-64f292a09906"",
|
|
""path"": ""<Keyboard>/escape"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""Cancel"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
},
|
|
{
|
|
""name"": """",
|
|
""id"": ""ae1f40de-6d3f-4863-b0e3-163be3e2c095"",
|
|
""path"": ""<Keyboard>/i"",
|
|
""interactions"": """",
|
|
""processors"": """",
|
|
""groups"": ""Keyboard&Mouse"",
|
|
""action"": ""CloseItemInventory"",
|
|
""isComposite"": false,
|
|
""isPartOfComposite"": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
""controlSchemes"": [
|
|
{
|
|
""name"": ""Keyboard&Mouse"",
|
|
""bindingGroup"": ""Keyboard&Mouse"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Keyboard>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
},
|
|
{
|
|
""devicePath"": ""<Mouse>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
""name"": ""Gamepad"",
|
|
""bindingGroup"": ""Gamepad"",
|
|
""devices"": [
|
|
{
|
|
""devicePath"": ""<Gamepad>"",
|
|
""isOptional"": false,
|
|
""isOR"": false
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}");
|
|
// Player
|
|
m_Player = asset.FindActionMap("Player", throwIfNotFound: true);
|
|
m_Player_Move = m_Player.FindAction("Move", throwIfNotFound: true);
|
|
m_Player_AssaultMode = m_Player.FindAction("AssaultMode", throwIfNotFound: true);
|
|
m_Player_Interaction = m_Player.FindAction("Interaction", throwIfNotFound: true);
|
|
m_Player_InteractionHold = m_Player.FindAction("InteractionHold", throwIfNotFound: true);
|
|
m_Player_Zkey = m_Player.FindAction("Zkey", throwIfNotFound: true);
|
|
m_Player_TakeAim = m_Player.FindAction("TakeAim", throwIfNotFound: true);
|
|
m_Player_Cancel = m_Player.FindAction("Cancel", throwIfNotFound: true);
|
|
m_Player_Targeting = m_Player.FindAction("Targeting", throwIfNotFound: true);
|
|
m_Player_TargetingHold = m_Player.FindAction("TargetingHold", throwIfNotFound: true);
|
|
m_Player_CancelHold = m_Player.FindAction("CancelHold", throwIfNotFound: true);
|
|
m_Player_Attack = m_Player.FindAction("Attack", throwIfNotFound: true);
|
|
m_Player_ShiftKey = m_Player.FindAction("ShiftKey", throwIfNotFound: true);
|
|
m_Player_BuildMode = m_Player.FindAction("BuildMode", throwIfNotFound: true);
|
|
m_Player_Esc = m_Player.FindAction("Esc", throwIfNotFound: true);
|
|
// Camera
|
|
m_Camera = asset.FindActionMap("Camera", throwIfNotFound: true);
|
|
m_Camera_Zoom = m_Camera.FindAction("Zoom", throwIfNotFound: true);
|
|
m_Camera_Rotate = m_Camera.FindAction("Rotate", throwIfNotFound: true);
|
|
// Ocean
|
|
m_Ocean = asset.FindActionMap("Ocean", throwIfNotFound: true);
|
|
m_Ocean_Move = m_Ocean.FindAction("Move", throwIfNotFound: true);
|
|
m_Ocean_ShipBoost = m_Ocean.FindAction("ShipBoost", throwIfNotFound: true);
|
|
m_Ocean_HandleCannonLaunch = m_Ocean.FindAction("HandleCannonLaunch", throwIfNotFound: true);
|
|
m_Ocean_ToggleLaunchMode = m_Ocean.FindAction("ToggleLaunchMode", throwIfNotFound: true);
|
|
m_Ocean_CancelHold = m_Ocean.FindAction("CancelHold", throwIfNotFound: true);
|
|
m_Ocean_OpenItemInventory = m_Ocean.FindAction("OpenItemInventory", throwIfNotFound: true);
|
|
// OceanUi
|
|
m_OceanUi = asset.FindActionMap("OceanUi", throwIfNotFound: true);
|
|
m_OceanUi_Cancel = m_OceanUi.FindAction("Cancel", throwIfNotFound: true);
|
|
m_OceanUi_CloseItemInventory = m_OceanUi.FindAction("CloseItemInventory", throwIfNotFound: true);
|
|
// Combat
|
|
m_Combat = asset.FindActionMap("Combat", throwIfNotFound: true);
|
|
m_Combat_Move = m_Combat.FindAction("Move", throwIfNotFound: true);
|
|
m_Combat_Attack = m_Combat.FindAction("Attack", throwIfNotFound: true);
|
|
m_Combat_Dash = m_Combat.FindAction("Dash", throwIfNotFound: true);
|
|
m_Combat_ActivateMainSkill = m_Combat.FindAction("ActivateMainSkill", throwIfNotFound: true);
|
|
m_Combat_OpenItemInventory = m_Combat.FindAction("OpenItemInventory", throwIfNotFound: true);
|
|
// CombatUi
|
|
m_CombatUi = asset.FindActionMap("CombatUi", throwIfNotFound: true);
|
|
m_CombatUi_Cancel = m_CombatUi.FindAction("Cancel", throwIfNotFound: true);
|
|
m_CombatUi_CloseItemInventory = m_CombatUi.FindAction("CloseItemInventory", 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);
|
|
}
|
|
|
|
// Player
|
|
private readonly InputActionMap m_Player;
|
|
private List<IPlayerActions> m_PlayerActionsCallbackInterfaces = new List<IPlayerActions>();
|
|
private readonly InputAction m_Player_Move;
|
|
private readonly InputAction m_Player_AssaultMode;
|
|
private readonly InputAction m_Player_Interaction;
|
|
private readonly InputAction m_Player_InteractionHold;
|
|
private readonly InputAction m_Player_Zkey;
|
|
private readonly InputAction m_Player_TakeAim;
|
|
private readonly InputAction m_Player_Cancel;
|
|
private readonly InputAction m_Player_Targeting;
|
|
private readonly InputAction m_Player_TargetingHold;
|
|
private readonly InputAction m_Player_CancelHold;
|
|
private readonly InputAction m_Player_Attack;
|
|
private readonly InputAction m_Player_ShiftKey;
|
|
private readonly InputAction m_Player_BuildMode;
|
|
private readonly InputAction m_Player_Esc;
|
|
public struct PlayerActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public PlayerActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Move => m_Wrapper.m_Player_Move;
|
|
public InputAction @AssaultMode => m_Wrapper.m_Player_AssaultMode;
|
|
public InputAction @Interaction => m_Wrapper.m_Player_Interaction;
|
|
public InputAction @InteractionHold => m_Wrapper.m_Player_InteractionHold;
|
|
public InputAction @Zkey => m_Wrapper.m_Player_Zkey;
|
|
public InputAction @TakeAim => m_Wrapper.m_Player_TakeAim;
|
|
public InputAction @Cancel => m_Wrapper.m_Player_Cancel;
|
|
public InputAction @Targeting => m_Wrapper.m_Player_Targeting;
|
|
public InputAction @TargetingHold => m_Wrapper.m_Player_TargetingHold;
|
|
public InputAction @CancelHold => m_Wrapper.m_Player_CancelHold;
|
|
public InputAction @Attack => m_Wrapper.m_Player_Attack;
|
|
public InputAction @ShiftKey => m_Wrapper.m_Player_ShiftKey;
|
|
public InputAction @BuildMode => m_Wrapper.m_Player_BuildMode;
|
|
public InputAction @Esc => m_Wrapper.m_Player_Esc;
|
|
public InputActionMap Get() { return m_Wrapper.m_Player; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(PlayerActions set) { return set.Get(); }
|
|
public void AddCallbacks(IPlayerActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_PlayerActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_PlayerActionsCallbackInterfaces.Add(instance);
|
|
@Move.started += instance.OnMove;
|
|
@Move.performed += instance.OnMove;
|
|
@Move.canceled += instance.OnMove;
|
|
@AssaultMode.started += instance.OnAssaultMode;
|
|
@AssaultMode.performed += instance.OnAssaultMode;
|
|
@AssaultMode.canceled += instance.OnAssaultMode;
|
|
@Interaction.started += instance.OnInteraction;
|
|
@Interaction.performed += instance.OnInteraction;
|
|
@Interaction.canceled += instance.OnInteraction;
|
|
@InteractionHold.started += instance.OnInteractionHold;
|
|
@InteractionHold.performed += instance.OnInteractionHold;
|
|
@InteractionHold.canceled += instance.OnInteractionHold;
|
|
@Zkey.started += instance.OnZkey;
|
|
@Zkey.performed += instance.OnZkey;
|
|
@Zkey.canceled += instance.OnZkey;
|
|
@TakeAim.started += instance.OnTakeAim;
|
|
@TakeAim.performed += instance.OnTakeAim;
|
|
@TakeAim.canceled += instance.OnTakeAim;
|
|
@Cancel.started += instance.OnCancel;
|
|
@Cancel.performed += instance.OnCancel;
|
|
@Cancel.canceled += instance.OnCancel;
|
|
@Targeting.started += instance.OnTargeting;
|
|
@Targeting.performed += instance.OnTargeting;
|
|
@Targeting.canceled += instance.OnTargeting;
|
|
@TargetingHold.started += instance.OnTargetingHold;
|
|
@TargetingHold.performed += instance.OnTargetingHold;
|
|
@TargetingHold.canceled += instance.OnTargetingHold;
|
|
@CancelHold.started += instance.OnCancelHold;
|
|
@CancelHold.performed += instance.OnCancelHold;
|
|
@CancelHold.canceled += instance.OnCancelHold;
|
|
@Attack.started += instance.OnAttack;
|
|
@Attack.performed += instance.OnAttack;
|
|
@Attack.canceled += instance.OnAttack;
|
|
@ShiftKey.started += instance.OnShiftKey;
|
|
@ShiftKey.performed += instance.OnShiftKey;
|
|
@ShiftKey.canceled += instance.OnShiftKey;
|
|
@BuildMode.started += instance.OnBuildMode;
|
|
@BuildMode.performed += instance.OnBuildMode;
|
|
@BuildMode.canceled += instance.OnBuildMode;
|
|
@Esc.started += instance.OnEsc;
|
|
@Esc.performed += instance.OnEsc;
|
|
@Esc.canceled += instance.OnEsc;
|
|
}
|
|
|
|
private void UnregisterCallbacks(IPlayerActions instance)
|
|
{
|
|
@Move.started -= instance.OnMove;
|
|
@Move.performed -= instance.OnMove;
|
|
@Move.canceled -= instance.OnMove;
|
|
@AssaultMode.started -= instance.OnAssaultMode;
|
|
@AssaultMode.performed -= instance.OnAssaultMode;
|
|
@AssaultMode.canceled -= instance.OnAssaultMode;
|
|
@Interaction.started -= instance.OnInteraction;
|
|
@Interaction.performed -= instance.OnInteraction;
|
|
@Interaction.canceled -= instance.OnInteraction;
|
|
@InteractionHold.started -= instance.OnInteractionHold;
|
|
@InteractionHold.performed -= instance.OnInteractionHold;
|
|
@InteractionHold.canceled -= instance.OnInteractionHold;
|
|
@Zkey.started -= instance.OnZkey;
|
|
@Zkey.performed -= instance.OnZkey;
|
|
@Zkey.canceled -= instance.OnZkey;
|
|
@TakeAim.started -= instance.OnTakeAim;
|
|
@TakeAim.performed -= instance.OnTakeAim;
|
|
@TakeAim.canceled -= instance.OnTakeAim;
|
|
@Cancel.started -= instance.OnCancel;
|
|
@Cancel.performed -= instance.OnCancel;
|
|
@Cancel.canceled -= instance.OnCancel;
|
|
@Targeting.started -= instance.OnTargeting;
|
|
@Targeting.performed -= instance.OnTargeting;
|
|
@Targeting.canceled -= instance.OnTargeting;
|
|
@TargetingHold.started -= instance.OnTargetingHold;
|
|
@TargetingHold.performed -= instance.OnTargetingHold;
|
|
@TargetingHold.canceled -= instance.OnTargetingHold;
|
|
@CancelHold.started -= instance.OnCancelHold;
|
|
@CancelHold.performed -= instance.OnCancelHold;
|
|
@CancelHold.canceled -= instance.OnCancelHold;
|
|
@Attack.started -= instance.OnAttack;
|
|
@Attack.performed -= instance.OnAttack;
|
|
@Attack.canceled -= instance.OnAttack;
|
|
@ShiftKey.started -= instance.OnShiftKey;
|
|
@ShiftKey.performed -= instance.OnShiftKey;
|
|
@ShiftKey.canceled -= instance.OnShiftKey;
|
|
@BuildMode.started -= instance.OnBuildMode;
|
|
@BuildMode.performed -= instance.OnBuildMode;
|
|
@BuildMode.canceled -= instance.OnBuildMode;
|
|
@Esc.started -= instance.OnEsc;
|
|
@Esc.performed -= instance.OnEsc;
|
|
@Esc.canceled -= instance.OnEsc;
|
|
}
|
|
|
|
public void RemoveCallbacks(IPlayerActions instance)
|
|
{
|
|
if (m_Wrapper.m_PlayerActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(IPlayerActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_PlayerActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_PlayerActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public PlayerActions @Player => new PlayerActions(this);
|
|
|
|
// Camera
|
|
private readonly InputActionMap m_Camera;
|
|
private List<ICameraActions> m_CameraActionsCallbackInterfaces = new List<ICameraActions>();
|
|
private readonly InputAction m_Camera_Zoom;
|
|
private readonly InputAction m_Camera_Rotate;
|
|
public struct CameraActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public CameraActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Zoom => m_Wrapper.m_Camera_Zoom;
|
|
public InputAction @Rotate => m_Wrapper.m_Camera_Rotate;
|
|
public InputActionMap Get() { return m_Wrapper.m_Camera; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(CameraActions set) { return set.Get(); }
|
|
public void AddCallbacks(ICameraActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_CameraActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_CameraActionsCallbackInterfaces.Add(instance);
|
|
@Zoom.started += instance.OnZoom;
|
|
@Zoom.performed += instance.OnZoom;
|
|
@Zoom.canceled += instance.OnZoom;
|
|
@Rotate.started += instance.OnRotate;
|
|
@Rotate.performed += instance.OnRotate;
|
|
@Rotate.canceled += instance.OnRotate;
|
|
}
|
|
|
|
private void UnregisterCallbacks(ICameraActions instance)
|
|
{
|
|
@Zoom.started -= instance.OnZoom;
|
|
@Zoom.performed -= instance.OnZoom;
|
|
@Zoom.canceled -= instance.OnZoom;
|
|
@Rotate.started -= instance.OnRotate;
|
|
@Rotate.performed -= instance.OnRotate;
|
|
@Rotate.canceled -= instance.OnRotate;
|
|
}
|
|
|
|
public void RemoveCallbacks(ICameraActions instance)
|
|
{
|
|
if (m_Wrapper.m_CameraActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(ICameraActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_CameraActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_CameraActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public CameraActions @Camera => new CameraActions(this);
|
|
|
|
// Ocean
|
|
private readonly InputActionMap m_Ocean;
|
|
private List<IOceanActions> m_OceanActionsCallbackInterfaces = new List<IOceanActions>();
|
|
private readonly InputAction m_Ocean_Move;
|
|
private readonly InputAction m_Ocean_ShipBoost;
|
|
private readonly InputAction m_Ocean_HandleCannonLaunch;
|
|
private readonly InputAction m_Ocean_ToggleLaunchMode;
|
|
private readonly InputAction m_Ocean_CancelHold;
|
|
private readonly InputAction m_Ocean_OpenItemInventory;
|
|
public struct OceanActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public OceanActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Move => m_Wrapper.m_Ocean_Move;
|
|
public InputAction @ShipBoost => m_Wrapper.m_Ocean_ShipBoost;
|
|
public InputAction @HandleCannonLaunch => m_Wrapper.m_Ocean_HandleCannonLaunch;
|
|
public InputAction @ToggleLaunchMode => m_Wrapper.m_Ocean_ToggleLaunchMode;
|
|
public InputAction @CancelHold => m_Wrapper.m_Ocean_CancelHold;
|
|
public InputAction @OpenItemInventory => m_Wrapper.m_Ocean_OpenItemInventory;
|
|
public InputActionMap Get() { return m_Wrapper.m_Ocean; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(OceanActions set) { return set.Get(); }
|
|
public void AddCallbacks(IOceanActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_OceanActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_OceanActionsCallbackInterfaces.Add(instance);
|
|
@Move.started += instance.OnMove;
|
|
@Move.performed += instance.OnMove;
|
|
@Move.canceled += instance.OnMove;
|
|
@ShipBoost.started += instance.OnShipBoost;
|
|
@ShipBoost.performed += instance.OnShipBoost;
|
|
@ShipBoost.canceled += instance.OnShipBoost;
|
|
@HandleCannonLaunch.started += instance.OnHandleCannonLaunch;
|
|
@HandleCannonLaunch.performed += instance.OnHandleCannonLaunch;
|
|
@HandleCannonLaunch.canceled += instance.OnHandleCannonLaunch;
|
|
@ToggleLaunchMode.started += instance.OnToggleLaunchMode;
|
|
@ToggleLaunchMode.performed += instance.OnToggleLaunchMode;
|
|
@ToggleLaunchMode.canceled += instance.OnToggleLaunchMode;
|
|
@CancelHold.started += instance.OnCancelHold;
|
|
@CancelHold.performed += instance.OnCancelHold;
|
|
@CancelHold.canceled += instance.OnCancelHold;
|
|
@OpenItemInventory.started += instance.OnOpenItemInventory;
|
|
@OpenItemInventory.performed += instance.OnOpenItemInventory;
|
|
@OpenItemInventory.canceled += instance.OnOpenItemInventory;
|
|
}
|
|
|
|
private void UnregisterCallbacks(IOceanActions instance)
|
|
{
|
|
@Move.started -= instance.OnMove;
|
|
@Move.performed -= instance.OnMove;
|
|
@Move.canceled -= instance.OnMove;
|
|
@ShipBoost.started -= instance.OnShipBoost;
|
|
@ShipBoost.performed -= instance.OnShipBoost;
|
|
@ShipBoost.canceled -= instance.OnShipBoost;
|
|
@HandleCannonLaunch.started -= instance.OnHandleCannonLaunch;
|
|
@HandleCannonLaunch.performed -= instance.OnHandleCannonLaunch;
|
|
@HandleCannonLaunch.canceled -= instance.OnHandleCannonLaunch;
|
|
@ToggleLaunchMode.started -= instance.OnToggleLaunchMode;
|
|
@ToggleLaunchMode.performed -= instance.OnToggleLaunchMode;
|
|
@ToggleLaunchMode.canceled -= instance.OnToggleLaunchMode;
|
|
@CancelHold.started -= instance.OnCancelHold;
|
|
@CancelHold.performed -= instance.OnCancelHold;
|
|
@CancelHold.canceled -= instance.OnCancelHold;
|
|
@OpenItemInventory.started -= instance.OnOpenItemInventory;
|
|
@OpenItemInventory.performed -= instance.OnOpenItemInventory;
|
|
@OpenItemInventory.canceled -= instance.OnOpenItemInventory;
|
|
}
|
|
|
|
public void RemoveCallbacks(IOceanActions instance)
|
|
{
|
|
if (m_Wrapper.m_OceanActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(IOceanActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_OceanActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_OceanActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public OceanActions @Ocean => new OceanActions(this);
|
|
|
|
// OceanUi
|
|
private readonly InputActionMap m_OceanUi;
|
|
private List<IOceanUiActions> m_OceanUiActionsCallbackInterfaces = new List<IOceanUiActions>();
|
|
private readonly InputAction m_OceanUi_Cancel;
|
|
private readonly InputAction m_OceanUi_CloseItemInventory;
|
|
public struct OceanUiActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public OceanUiActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Cancel => m_Wrapper.m_OceanUi_Cancel;
|
|
public InputAction @CloseItemInventory => m_Wrapper.m_OceanUi_CloseItemInventory;
|
|
public InputActionMap Get() { return m_Wrapper.m_OceanUi; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(OceanUiActions set) { return set.Get(); }
|
|
public void AddCallbacks(IOceanUiActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_OceanUiActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_OceanUiActionsCallbackInterfaces.Add(instance);
|
|
@Cancel.started += instance.OnCancel;
|
|
@Cancel.performed += instance.OnCancel;
|
|
@Cancel.canceled += instance.OnCancel;
|
|
@CloseItemInventory.started += instance.OnCloseItemInventory;
|
|
@CloseItemInventory.performed += instance.OnCloseItemInventory;
|
|
@CloseItemInventory.canceled += instance.OnCloseItemInventory;
|
|
}
|
|
|
|
private void UnregisterCallbacks(IOceanUiActions instance)
|
|
{
|
|
@Cancel.started -= instance.OnCancel;
|
|
@Cancel.performed -= instance.OnCancel;
|
|
@Cancel.canceled -= instance.OnCancel;
|
|
@CloseItemInventory.started -= instance.OnCloseItemInventory;
|
|
@CloseItemInventory.performed -= instance.OnCloseItemInventory;
|
|
@CloseItemInventory.canceled -= instance.OnCloseItemInventory;
|
|
}
|
|
|
|
public void RemoveCallbacks(IOceanUiActions instance)
|
|
{
|
|
if (m_Wrapper.m_OceanUiActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(IOceanUiActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_OceanUiActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_OceanUiActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public OceanUiActions @OceanUi => new OceanUiActions(this);
|
|
|
|
// Combat
|
|
private readonly InputActionMap m_Combat;
|
|
private List<ICombatActions> m_CombatActionsCallbackInterfaces = new List<ICombatActions>();
|
|
private readonly InputAction m_Combat_Move;
|
|
private readonly InputAction m_Combat_Attack;
|
|
private readonly InputAction m_Combat_Dash;
|
|
private readonly InputAction m_Combat_ActivateMainSkill;
|
|
private readonly InputAction m_Combat_OpenItemInventory;
|
|
public struct CombatActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public CombatActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Move => m_Wrapper.m_Combat_Move;
|
|
public InputAction @Attack => m_Wrapper.m_Combat_Attack;
|
|
public InputAction @Dash => m_Wrapper.m_Combat_Dash;
|
|
public InputAction @ActivateMainSkill => m_Wrapper.m_Combat_ActivateMainSkill;
|
|
public InputAction @OpenItemInventory => m_Wrapper.m_Combat_OpenItemInventory;
|
|
public InputActionMap Get() { return m_Wrapper.m_Combat; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(CombatActions set) { return set.Get(); }
|
|
public void AddCallbacks(ICombatActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_CombatActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_CombatActionsCallbackInterfaces.Add(instance);
|
|
@Move.started += instance.OnMove;
|
|
@Move.performed += instance.OnMove;
|
|
@Move.canceled += instance.OnMove;
|
|
@Attack.started += instance.OnAttack;
|
|
@Attack.performed += instance.OnAttack;
|
|
@Attack.canceled += instance.OnAttack;
|
|
@Dash.started += instance.OnDash;
|
|
@Dash.performed += instance.OnDash;
|
|
@Dash.canceled += instance.OnDash;
|
|
@ActivateMainSkill.started += instance.OnActivateMainSkill;
|
|
@ActivateMainSkill.performed += instance.OnActivateMainSkill;
|
|
@ActivateMainSkill.canceled += instance.OnActivateMainSkill;
|
|
@OpenItemInventory.started += instance.OnOpenItemInventory;
|
|
@OpenItemInventory.performed += instance.OnOpenItemInventory;
|
|
@OpenItemInventory.canceled += instance.OnOpenItemInventory;
|
|
}
|
|
|
|
private void UnregisterCallbacks(ICombatActions instance)
|
|
{
|
|
@Move.started -= instance.OnMove;
|
|
@Move.performed -= instance.OnMove;
|
|
@Move.canceled -= instance.OnMove;
|
|
@Attack.started -= instance.OnAttack;
|
|
@Attack.performed -= instance.OnAttack;
|
|
@Attack.canceled -= instance.OnAttack;
|
|
@Dash.started -= instance.OnDash;
|
|
@Dash.performed -= instance.OnDash;
|
|
@Dash.canceled -= instance.OnDash;
|
|
@ActivateMainSkill.started -= instance.OnActivateMainSkill;
|
|
@ActivateMainSkill.performed -= instance.OnActivateMainSkill;
|
|
@ActivateMainSkill.canceled -= instance.OnActivateMainSkill;
|
|
@OpenItemInventory.started -= instance.OnOpenItemInventory;
|
|
@OpenItemInventory.performed -= instance.OnOpenItemInventory;
|
|
@OpenItemInventory.canceled -= instance.OnOpenItemInventory;
|
|
}
|
|
|
|
public void RemoveCallbacks(ICombatActions instance)
|
|
{
|
|
if (m_Wrapper.m_CombatActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(ICombatActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_CombatActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_CombatActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public CombatActions @Combat => new CombatActions(this);
|
|
|
|
// CombatUi
|
|
private readonly InputActionMap m_CombatUi;
|
|
private List<ICombatUiActions> m_CombatUiActionsCallbackInterfaces = new List<ICombatUiActions>();
|
|
private readonly InputAction m_CombatUi_Cancel;
|
|
private readonly InputAction m_CombatUi_CloseItemInventory;
|
|
public struct CombatUiActions
|
|
{
|
|
private @BlueWater m_Wrapper;
|
|
public CombatUiActions(@BlueWater wrapper) { m_Wrapper = wrapper; }
|
|
public InputAction @Cancel => m_Wrapper.m_CombatUi_Cancel;
|
|
public InputAction @CloseItemInventory => m_Wrapper.m_CombatUi_CloseItemInventory;
|
|
public InputActionMap Get() { return m_Wrapper.m_CombatUi; }
|
|
public void Enable() { Get().Enable(); }
|
|
public void Disable() { Get().Disable(); }
|
|
public bool enabled => Get().enabled;
|
|
public static implicit operator InputActionMap(CombatUiActions set) { return set.Get(); }
|
|
public void AddCallbacks(ICombatUiActions instance)
|
|
{
|
|
if (instance == null || m_Wrapper.m_CombatUiActionsCallbackInterfaces.Contains(instance)) return;
|
|
m_Wrapper.m_CombatUiActionsCallbackInterfaces.Add(instance);
|
|
@Cancel.started += instance.OnCancel;
|
|
@Cancel.performed += instance.OnCancel;
|
|
@Cancel.canceled += instance.OnCancel;
|
|
@CloseItemInventory.started += instance.OnCloseItemInventory;
|
|
@CloseItemInventory.performed += instance.OnCloseItemInventory;
|
|
@CloseItemInventory.canceled += instance.OnCloseItemInventory;
|
|
}
|
|
|
|
private void UnregisterCallbacks(ICombatUiActions instance)
|
|
{
|
|
@Cancel.started -= instance.OnCancel;
|
|
@Cancel.performed -= instance.OnCancel;
|
|
@Cancel.canceled -= instance.OnCancel;
|
|
@CloseItemInventory.started -= instance.OnCloseItemInventory;
|
|
@CloseItemInventory.performed -= instance.OnCloseItemInventory;
|
|
@CloseItemInventory.canceled -= instance.OnCloseItemInventory;
|
|
}
|
|
|
|
public void RemoveCallbacks(ICombatUiActions instance)
|
|
{
|
|
if (m_Wrapper.m_CombatUiActionsCallbackInterfaces.Remove(instance))
|
|
UnregisterCallbacks(instance);
|
|
}
|
|
|
|
public void SetCallbacks(ICombatUiActions instance)
|
|
{
|
|
foreach (var item in m_Wrapper.m_CombatUiActionsCallbackInterfaces)
|
|
UnregisterCallbacks(item);
|
|
m_Wrapper.m_CombatUiActionsCallbackInterfaces.Clear();
|
|
AddCallbacks(instance);
|
|
}
|
|
}
|
|
public CombatUiActions @CombatUi => new CombatUiActions(this);
|
|
private int m_KeyboardMouseSchemeIndex = -1;
|
|
public InputControlScheme KeyboardMouseScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_KeyboardMouseSchemeIndex == -1) m_KeyboardMouseSchemeIndex = asset.FindControlSchemeIndex("Keyboard&Mouse");
|
|
return asset.controlSchemes[m_KeyboardMouseSchemeIndex];
|
|
}
|
|
}
|
|
private int m_GamepadSchemeIndex = -1;
|
|
public InputControlScheme GamepadScheme
|
|
{
|
|
get
|
|
{
|
|
if (m_GamepadSchemeIndex == -1) m_GamepadSchemeIndex = asset.FindControlSchemeIndex("Gamepad");
|
|
return asset.controlSchemes[m_GamepadSchemeIndex];
|
|
}
|
|
}
|
|
public interface IPlayerActions
|
|
{
|
|
void OnMove(InputAction.CallbackContext context);
|
|
void OnAssaultMode(InputAction.CallbackContext context);
|
|
void OnInteraction(InputAction.CallbackContext context);
|
|
void OnInteractionHold(InputAction.CallbackContext context);
|
|
void OnZkey(InputAction.CallbackContext context);
|
|
void OnTakeAim(InputAction.CallbackContext context);
|
|
void OnCancel(InputAction.CallbackContext context);
|
|
void OnTargeting(InputAction.CallbackContext context);
|
|
void OnTargetingHold(InputAction.CallbackContext context);
|
|
void OnCancelHold(InputAction.CallbackContext context);
|
|
void OnAttack(InputAction.CallbackContext context);
|
|
void OnShiftKey(InputAction.CallbackContext context);
|
|
void OnBuildMode(InputAction.CallbackContext context);
|
|
void OnEsc(InputAction.CallbackContext context);
|
|
}
|
|
public interface ICameraActions
|
|
{
|
|
void OnZoom(InputAction.CallbackContext context);
|
|
void OnRotate(InputAction.CallbackContext context);
|
|
}
|
|
public interface IOceanActions
|
|
{
|
|
void OnMove(InputAction.CallbackContext context);
|
|
void OnShipBoost(InputAction.CallbackContext context);
|
|
void OnHandleCannonLaunch(InputAction.CallbackContext context);
|
|
void OnToggleLaunchMode(InputAction.CallbackContext context);
|
|
void OnCancelHold(InputAction.CallbackContext context);
|
|
void OnOpenItemInventory(InputAction.CallbackContext context);
|
|
}
|
|
public interface IOceanUiActions
|
|
{
|
|
void OnCancel(InputAction.CallbackContext context);
|
|
void OnCloseItemInventory(InputAction.CallbackContext context);
|
|
}
|
|
public interface ICombatActions
|
|
{
|
|
void OnMove(InputAction.CallbackContext context);
|
|
void OnAttack(InputAction.CallbackContext context);
|
|
void OnDash(InputAction.CallbackContext context);
|
|
void OnActivateMainSkill(InputAction.CallbackContext context);
|
|
void OnOpenItemInventory(InputAction.CallbackContext context);
|
|
}
|
|
public interface ICombatUiActions
|
|
{
|
|
void OnCancel(InputAction.CallbackContext context);
|
|
void OnCloseItemInventory(InputAction.CallbackContext context);
|
|
}
|
|
}
|