Initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
@startuml
|
||||
abstract class BaseInputProvider {
|
||||
+ <<virtual>> Enable() : void
|
||||
+ <<virtual>> Disable() : void
|
||||
}
|
||||
class "UnityEvent`1"<T> {
|
||||
}
|
||||
MonoBehaviour <|-- BaseInputProvider
|
||||
BaseInputProvider --> "OnCursorMoved<Vector2>" "UnityEvent`1"
|
||||
BaseInputProvider --> "OnCursorDelta<Vector2>" "UnityEvent`1"
|
||||
BaseInputProvider --> "OnPanStart<Vector2>" "UnityEvent`1"
|
||||
BaseInputProvider --> "OnPanEnd" UnityEvent
|
||||
BaseInputProvider --> "OnRotateStart" UnityEvent
|
||||
BaseInputProvider --> "OnRotateEnd" UnityEvent
|
||||
BaseInputProvider --> "OnZoom<float>" "UnityEvent`1"
|
||||
BaseInputProvider --> "OnRotate" UnityEvent
|
||||
BaseInputProvider --> "OnPlace" UnityEvent
|
||||
BaseInputProvider --> "OnDraggingEnd" UnityEvent
|
||||
BaseInputProvider --> "OnSelect" UnityEvent
|
||||
BaseInputProvider --> "OnEnableMultiSelect" UnityEvent
|
||||
BaseInputProvider --> "OnDisableMultiSelect" UnityEvent
|
||||
BaseInputProvider --> "OnCancel" UnityEvent
|
||||
BaseInputProvider --> "OnDelete" UnityEvent
|
||||
BaseInputProvider o-> "OnChangeAttachPoint<int>" "UnityEvent`1"
|
||||
@enduml
|
||||
@@ -0,0 +1,16 @@
|
||||
@startuml
|
||||
enum InputMode {
|
||||
Camera,
|
||||
ObjectDragging,
|
||||
UI,
|
||||
Gizmo,
|
||||
}
|
||||
class InputModeManager {
|
||||
+ {static} Push(mode:InputMode) : void
|
||||
+ {static} Pop(mode:InputMode) : void
|
||||
+ {static} Has(mode:InputMode) : bool
|
||||
+ {static} Is(mode:InputMode) : bool
|
||||
+ {static} debugCurrentList() : void
|
||||
}
|
||||
InputModeManager --> "Current" InputMode
|
||||
@enduml
|
||||
@@ -0,0 +1,7 @@
|
||||
@startuml
|
||||
class InputProviderManager {
|
||||
+ {static} getInstance() : InputProviderManager
|
||||
+ getCurrentInputProvider() : BaseInputProvider
|
||||
}
|
||||
MonoBehaviour <|-- InputProviderManager
|
||||
@enduml
|
||||
@@ -0,0 +1,5 @@
|
||||
@startuml
|
||||
class MobileInputProvider {
|
||||
}
|
||||
BaseInputProvider <|-- MobileInputProvider
|
||||
@enduml
|
||||
@@ -0,0 +1,18 @@
|
||||
@startuml
|
||||
class PCIntputProvider {
|
||||
}
|
||||
BaseInputProvider <|-- PCIntputProvider
|
||||
PCIntputProvider --> "mousePosition" InputAction
|
||||
PCIntputProvider --> "mouseDelta" InputAction
|
||||
PCIntputProvider --> "scrollAction" InputAction
|
||||
PCIntputProvider --> "panAction" InputAction
|
||||
PCIntputProvider --> "orbitAction" InputAction
|
||||
PCIntputProvider --> "rotateAction" InputAction
|
||||
PCIntputProvider --> "placeAction" InputAction
|
||||
PCIntputProvider --> "EndDraggingAction" InputAction
|
||||
PCIntputProvider --> "selectAction" InputAction
|
||||
PCIntputProvider --> "cancelAction" InputAction
|
||||
PCIntputProvider --> "deleteAction" InputAction
|
||||
PCIntputProvider --> "enableMultiSelectAction" InputAction
|
||||
PCIntputProvider --> "disableMultiSelectAction" InputAction
|
||||
@enduml
|
||||
Reference in New Issue
Block a user