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 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 showNotification
- showNotification(runtimeScene: RuntimeScene, content: string, type: "warning" | "error" | "success"): void
Parameters
content: string
type: "warning" | "error" | "success"
Returns void
Helper to add a reload link in case the window hasn't opened properly.