Namespace multiplayerComponents
Functions
Const addReloadUrlToTextsContainer
- addReloadUrlToTextsContainer(onClick: () => void, textContainer: HTMLDivElement): void
Parameters
onClick: () => void
textContainer: HTMLDivElement
Returns void
Const addTextsToLoadingContainer
- addTextsToLoadingContainer(runtimeScene: RuntimeScene, isGameRegistered: boolean, wikiOpenAction: () => void): void
Parameters
isGameRegistered: boolean
wikiOpenAction: () => void
Returns void
Const changeLobbiesWindowCloseActionVisibility
- changeLobbiesWindowCloseActionVisibility(runtimeScene: RuntimeScene, canClose: boolean): void
Const displayConnectionErrorNotification
- displayConnectionErrorNotification(runtimeScene: RuntimeScene): void
Const displayErrorNotification
Const displayHostMigrationNotification
- displayHostMigrationNotification(runtimeScene: RuntimeScene): void
Const displayIframeInsideLobbiesContainer
- displayIframeInsideLobbiesContainer(runtimeScene: RuntimeScene, url: string): void
Const displayLobbies
- displayLobbies(runtimeScene: RuntimeScene, onCloseLobbiesContainer: () => void): void
Parameters
onCloseLobbiesContainer: () => void
Returns void
Const displayPlayerJoinedNotification
- displayPlayerJoinedNotification(runtimeScene: RuntimeScene, playerName: string): void
Const displayPlayerLeftNotification
- displayPlayerLeftNotification(runtimeScene: RuntimeScene, playerName: string): void
Const getDomElementContainer
- getDomElementContainer(runtimeScene: RuntimeScene): null | HTMLDivElement
Parameters
Returns null | HTMLDivElement
Const getLobbiesCloseContainer
- getLobbiesCloseContainer(runtimeScene: RuntimeScene): null | HTMLDivElement
Parameters
Returns null | HTMLDivElement
Const getLobbiesIframe
- getLobbiesIframe(runtimeScene: RuntimeScene): null | HTMLIFrameElement
Parameters
Returns null | HTMLIFrameElement
Const getLobbiesIframeContainer
- getLobbiesIframeContainer(runtimeScene: RuntimeScene): null | HTMLDivElement
Parameters
Returns null | HTMLDivElement
Const getLobbiesLoaderContainer
- getLobbiesLoaderContainer(runtimeScene: RuntimeScene): null | HTMLDivElement
Parameters
Returns null | HTMLDivElement
Const getLobbiesRootContainer
- getLobbiesRootContainer(runtimeScene: RuntimeScene): null | HTMLDivElement
Parameters
Returns null | HTMLDivElement
Const getLobbiesTextsContainer
- getLobbiesTextsContainer(runtimeScene: RuntimeScene): null | HTMLDivElement
Parameters
Returns null | HTMLDivElement
Const hideLobbiesCloseButtonTemporarily
- hideLobbiesCloseButtonTemporarily(runtimeScene: RuntimeScene): void
Const removeLobbiesContainer
Const showHostMigrationFailedNotification
- showHostMigrationFailedNotification(runtimeScene: RuntimeScene): void
Const showHostMigrationFinishedNotification
- showHostMigrationFinishedNotification(runtimeScene: RuntimeScene): void
Const showNotification
- showNotification(__namedParameters: { content: string; id?: string; persist?: boolean; runtimeScene: RuntimeScene; type: "warning" | "error" | "success" }): void
Parameters
__namedParameters: { content: string; id?: string; persist?: boolean; runtimeScene: RuntimeScene; type: "warning" | "error" | "success" }
content: string
Optional id?: string
Optional persist?: boolean
type: "warning" | "error" | "success"
Returns void
Helper to add a reload link in case the window hasn't opened properly.