Methods
(async) createLocalPlayer() → {Promise.<object>}
Create and register the local player
- Source
Throws:
- If not initialized or connection issues
- Type
- Error
Returns:
Player data
- Type:
- Promise.<object>
destroy()
Clean up resources
- Source
destroy()
Clean up all services
- Source
getKeyboardController()
Gets keyboard controller instance
- Source
Throws:
Error if keyboard controller not enabled or accessed before room creation
getLocalPlayer() → {object|null}
Get current player data
- Source
Returns:
Player data or null
- Type:
- object |
null
getMatchmakingService()
Gets matchmaking service instance
- Source
Throws:
Error if accessed before room creation
getMouseController()
Gets mouse controller instance
- Source
Throws:
Error if mouse controller not enabled or accessed before room creation
getVoiceChatManager()
Gets voice chat manager instance
- Source
Throws:
Error if accessed before room creation
(async) initialize()
Initialize the player system (call after room is created)
- Source