Methods

(async) createLocalPlayer() → {Promise.<object>}

Create and register the local player
Throws:
If not initialized or connection issues
Type
Error
Returns:
Player data
Type: 
Promise.<object>

destroy()

Clean up resources

destroy()

Clean up all services

getKeyboardController()

Gets keyboard controller instance
Throws:
Error if keyboard controller not enabled or accessed before room creation

getLocalPlayer() → {object|null}

Get current player data
Returns:
Player data or null
Type: 
object | null

getMatchmakingService()

Gets matchmaking service instance
Throws:
Error if accessed before room creation

getMouseController()

Gets mouse controller instance
Throws:
Error if mouse controller not enabled or accessed before room creation

getVoiceChatManager()

Gets voice chat manager instance
Throws:
Error if accessed before room creation

(async) initialize()

Initialize the player system (call after room is created)