s&box docs

public class Sandbox.SceneNetworkSystem : Sandbox.Network.GameNetworkSystem

This is created and referenced by the network system, as a way to route.

Methods

Showing 15 methods

public virtual bool AcceptConnection(Sandbox.Connection channel, string reason)

Called on the host to decide whether to accept a `Sandbox.Connection`. If any `Sandbox.Component` that implements this returns false, the connection will be denied.

Parameters

  • reason: The reason to display to the client.

public virtual void Dispose()

public virtual void GetSnapshot(Sandbox.Connection source, Sandbox.Network.SnapshotMsg msg)

A client has joined and wants a snapshot of the world.

public virtual System.Threading.Tasks.Task MountVPKs(Sandbox.Connection source, Sandbox.Network.MountedVPKsResponse msg)

Asynchronously load and mount any VPKs from the provided server response.

public virtual void OnBecameHost(Sandbox.Connection previousHost)

public virtual void OnConnected(Sandbox.Connection client)

public virtual void OnInitialize()

public virtual void OnJoined(Sandbox.Connection client)

public virtual void OnLeave(Sandbox.Connection client)

public virtual System.IDisposable Push()

public virtual System.Threading.Tasks.Task SetSnapshotAsync(Sandbox.Network.SnapshotMsg msg)

We have received a snapshot of the world.

protected virtual void Tick()

protected string WorkoutMapName()

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.SceneNetworkSystem

On this page