Nocturna
Preparing search index...
states/MultiSceneStates
LoadingState
Class LoadingState
LoadingState represents the loading phase of the multiplayer scene.
Loads the level and assigns players to subcubes.
Waits for all players to be ready before starting the game.
Implements LevelLoaderObserver for level loading callbacks.
Hierarchy (
View Summary
)
AbstractGameSceneState
LoadingState
Implements
LevelLoaderObserver
Index
Constructors
constructor
Properties
game
Scene
Methods
enter
exit
on
Connection
Established
on
Cube
on
Level
Loaded
on
Object
Created
on
Parent
on
Participant
Joined
on
Participant
Left
on
Peer
Message
on
Player
on
Room
Created
on
Room
Creation
Failed
on
Room
Joined
on
Room
Join
Failed
render
update
Constructors
constructor
new
LoadingState
(
gameScene
:
MultiScene
,
localPlayer
:
Participant
,
remoteParticipant
:
Participant
[]
,
)
:
LoadingState
Parameters
gameScene
:
MultiScene
localPlayer
:
Participant
remoteParticipant
:
Participant
[]
Returns
LoadingState
Properties
Protected
game
Scene
gameScene
:
MultiScene
Methods
enter
enter
()
:
void
Returns
void
exit
exit
()
:
void
Returns
void
on
Connection
Established
onConnectionEstablished
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Cube
onCube
(
cube
:
Cube
)
:
void
Parameters
cube
:
Cube
Returns
void
on
Level
Loaded
onLevelLoaded
()
:
void
Returns
void
on
Object
Created
onObjectCreated
(
object
:
GameObject
)
:
void
Parameters
object
:
GameObject
Returns
void
on
Parent
onParent
(
parent
:
ParentNode
)
:
void
Parameters
parent
:
ParentNode
Returns
void
on
Participant
Joined
onParticipantJoined
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Participant
Left
onParticipantLeft
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Peer
Message
onPeerMessage
(
participantId
:
string
,
action
:
string
,
_
:
any
)
:
void
Parameters
participantId
:
string
action
:
string
_
:
any
Returns
void
on
Player
onPlayer
(
player
:
Player
)
:
void
Parameters
player
:
Player
Returns
void
on
Room
Created
onRoomCreated
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Room
Creation
Failed
onRoomCreationFailed
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
on
Room
Joined
onRoomJoined
(
_
:
string
,
__
:
string
,
___
:
string
[]
)
:
void
Parameters
_
:
string
__
:
string
___
:
string
[]
Returns
void
on
Room
Join
Failed
onRoomJoinFailed
(
_
:
string
)
:
void
Parameters
_
:
string
Returns
void
render
render
()
:
void
Returns
void
update
update
(
_
:
number
,
__
:
CharacterInput
)
:
AbstractGameSceneState
Parameters
_
:
number
__
:
CharacterInput
Returns
AbstractGameSceneState
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
game
Scene
Methods
enter
exit
on
Connection
Established
on
Cube
on
Level
Loaded
on
Object
Created
on
Parent
on
Participant
Joined
on
Participant
Left
on
Peer
Message
on
Player
on
Room
Created
on
Room
Creation
Failed
on
Room
Joined
on
Room
Join
Failed
render
update
Nocturna
Loading...
LoadingState represents the loading phase of the multiplayer scene.