Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
@startuml
|
||||
abstract class BaseInputProvider {
|
||||
+ OnCursorMoved : UnityEvent<Vector2>
|
||||
+ OnCursorDelta : UnityEvent<Vector2>
|
||||
+ OnPanStart : UnityEvent<Vector2>
|
||||
+ OnPanEnd : UnityEvent
|
||||
+ OnRotateStart : UnityEvent
|
||||
+ OnRotateEnd : UnityEvent
|
||||
+ OnZoom : UnityEvent<float>
|
||||
+ OnRotate : UnityEvent
|
||||
+ OnPlace : UnityEvent
|
||||
+ OnDraggingEnd : UnityEvent
|
||||
+ OnSelect : UnityEvent
|
||||
+ OnEnableMultiSelect : UnityEvent
|
||||
+ OnDisableMultiSelect : UnityEvent
|
||||
+ OnCancel : UnityEvent
|
||||
+ OnDelete : UnityEvent
|
||||
+ OnChangeAttachPoint : UnityEvent<int>
|
||||
+ <<virtual>> Enable() : void
|
||||
+ <<virtual>> Disable() : void
|
||||
}
|
||||
MonoBehaviour <|-- BaseInputProvider
|
||||
@enduml
|
||||
@@ -0,0 +1,17 @@
|
||||
@startuml
|
||||
enum InputMode {
|
||||
Camera,
|
||||
ObjectDragging,
|
||||
UI,
|
||||
Gizmo,
|
||||
}
|
||||
class InputModeManager {
|
||||
- {static} <<readonly>> _list : List<InputMode>
|
||||
+ {static} Current : InputMode <<get>>
|
||||
+ {static} Push(mode:InputMode) : void
|
||||
+ {static} Pop(mode:InputMode) : void
|
||||
+ {static} Has(mode:InputMode) : bool
|
||||
+ {static} Is(mode:InputMode) : bool
|
||||
+ {static} debugCurrentList() : void
|
||||
}
|
||||
@enduml
|
||||
@@ -0,0 +1,10 @@
|
||||
@startuml
|
||||
class InputProviderManager {
|
||||
- {static} instance : InputProviderManager
|
||||
- currentInputProvider : BaseInputProvider
|
||||
- Awake() : void
|
||||
+ {static} getInstance() : InputProviderManager
|
||||
+ getCurrentInputProvider() : BaseInputProvider
|
||||
}
|
||||
MonoBehaviour <|-- InputProviderManager
|
||||
@enduml
|
||||
@@ -0,0 +1,6 @@
|
||||
@startuml
|
||||
class MobileInputProvider {
|
||||
- Start() : void
|
||||
}
|
||||
BaseInputProvider <|-- MobileInputProvider
|
||||
@enduml
|
||||
@@ -0,0 +1,35 @@
|
||||
@startuml
|
||||
class PCIntputProvider {
|
||||
+ mousePosition : InputAction
|
||||
+ mouseDelta : InputAction
|
||||
+ scrollAction : InputAction
|
||||
+ panAction : InputAction
|
||||
+ orbitAction : InputAction
|
||||
+ rotateAction : InputAction
|
||||
+ placeAction : InputAction
|
||||
+ EndDraggingAction : InputAction
|
||||
+ selectAction : InputAction
|
||||
+ cancelAction : InputAction
|
||||
+ deleteAction : InputAction
|
||||
+ enableMultiSelectAction : InputAction
|
||||
+ disableMultiSelectAction : InputAction
|
||||
- OnEnable() : void
|
||||
- OnDisable() : void
|
||||
- OnInputSystem_Move(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_Delta(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_Scroll(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_PanStart(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_PanEnd(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_OrbitStart(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_OrbitEnd(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_Rotate(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_Place(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_DraggingEnd(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_Cancel(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_Select(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_EnableMultiSelect(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_DisableMultiSelect(ctx:InputAction.CallbackContext) : void
|
||||
- OnInputSystem_Delete(ctx:InputAction.CallbackContext) : void
|
||||
}
|
||||
BaseInputProvider <|-- PCIntputProvider
|
||||
@enduml
|
||||
Reference in New Issue
Block a user