build Constructors 1

functions Methods 20

AcceptConnection (channel, reason)
bool
Called on the host to decide whether to accept a Sandbox.Connection.
AddHandler (handler)
BecomeHostAsync (previousHost, snapshot)
Task
We're already the host; load the previous host's snapshot.
Broadcast (obj, filter)
BroadcastRaw (msg, filter)
Dispose ()
GetMountedVPKs (source, msg)
GetSnapshot (source, msg)
MountVPKs (source, msg)
Task
OnBecameHost (previousHost)
Legacy host-change callback. Override BecomeHostAsync to apply the handoff snapshot. The default BecomeHostAsync implementation calls this for existing subclasses.
OnConnected (client)
A client has connected to the server but hasn't fully finished joining yet.
OnHostChanged (previousHost, newHost)
Legacy host-change callback. Override ResyncFromHostAsync to apply the new host's snapshot. The default ResyncFromHostAsync implementation calls this for existing subclasses.
OnInitialize ()
Called when the network system should handle initialization.
OnJoined (client)
Fully joined the server. Can be called when changing the map too. The game should usually create some object for the player to control here.
OnLeave (client)
A client has disconnected from the server.
Push ()
IDisposable
Allows to push some kind of scope when reading network messages. This is useful if you need to adjust Time.Now etc.
ResyncFromHostAsync (previousHost, newHost, snapshot)
Task
Rebuild the game from the new host's snapshot.
Send (connectionId, obj)
SetSnapshotAsync (data)
Task
Load the scene and objects supplied by the host.
Tick ()
Called every frame

Inheritance

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.