Frontend/Game/ModalManager.default
-
EventEmitter
↳
default
- activeModalId$
- cursorState
- lastIndex
- modalPositionChanged$
- modalPositions
- modalPositions$
- persistentChunkStore
- instance
- acceptInputForTarget
- clearModalPosition
- getCursorState
- getIndex
- getModalPosition
- getModalPositions
- setCursorState
- setModalPosition
- setModalState
- create
• Private
new default(persistentChunkStore
, modalPositions
)
Name | Type |
---|---|
persistentChunkStore |
default |
modalPositions |
Map <ModalId , ModalPosition > |
EventEmitter.constructor
• Readonly
activeModalId$: Monomitter
<string
>
• Private
cursorState: CursorState
• Private
lastIndex: number
• Readonly
modalPositionChanged$: Monomitter
<ModalId
>
• Private
modalPositions: Map
<ModalId
, ModalPosition
>
• modalPositions$: Monomitter
<Map
<ModalId
, ModalPosition
>>
• Private
persistentChunkStore: default
▪ Static
instance: default
▸ acceptInputForTarget(input
): void
Name | Type |
---|---|
input |
WorldCoords |
void
▸ clearModalPosition(modalId
): void
Name | Type |
---|---|
modalId |
ModalId |
void
▸ getCursorState(): CursorState
CursorState
▸ getIndex(): number
number
▸ getModalPosition(modalId
): undefined
| ModalPosition
Name | Type |
---|---|
modalId |
ModalId |
undefined
| ModalPosition
▸ getModalPositions(modalIds?
): Map
<ModalId
, ModalPosition
>
Name | Type | Default value |
---|---|---|
modalIds |
ModalId [] |
[] |
Map
<ModalId
, ModalPosition
>
▸ setCursorState(newstate
): void
Name | Type |
---|---|
newstate |
CursorState |
void
▸ setModalPosition(modalId
, pos
): void
Name | Type |
---|---|
modalId |
ModalId |
pos |
ModalPosition |
void
▸ setModalState(modalId
, state
): void
Name | Type |
---|---|
modalId |
ModalId |
state |
"open" | "minimized" | "closed" |
void
▸ Static
create(persistentChunkStore
): Promise
<default
>
Name | Type |
---|---|
persistentChunkStore |
default |
Promise
<default
>