mCasino.api.lobby
mCasino Lobby API
Functions
inject
mCasino.api.lobby.inject(panel: DPanel) → ()Injects lobby panel with the required functions for games, implements:
- SetGame(gameName) -- use this to set the game
- OnSetGame() -- use this to set your lobby panel elements
- .gameData - requries game to be set (available in OnSetGame)
- Leave() -- leave the session
- OnSessionUpdate(data)
- OnClientJoin(session)
createSession
mCasino.api.lobby.createSession(gameName: string) → ()Creates a session
joinSession
mCasino.api.lobby.joinSession(gameName: string,lobbyId: string) → ()Joins a session