SceneNetworkSystemclass

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

object→GameNetworkSystem→SceneNetworkSystem
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.SceneNetworkSystem : Sandbox.Network.GameNetworkSystem

Methods15

Showing 15 methods

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

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.

ParameterTypeDescription
channelConnection—
reasonstringThe reason to display to the client.
Returns:bool—

public virtual void Dispose()PUBLICVIRTUAL

Returns:void—

public virtual void OnConnected(Sandbox.Connection client)PUBLICVIRTUAL

ParameterTypeDescription
clientConnection—
Returns:void—

public virtual void OnInitialize()PUBLICVIRTUAL

Returns:void—

public virtual void OnJoined(Sandbox.Connection client)PUBLICVIRTUAL

ParameterTypeDescription
clientConnection—
Returns:void—

public virtual void OnLeave(Sandbox.Connection client)PUBLICVIRTUAL

ParameterTypeDescription
clientConnection—
Returns:void—

public virtual System.IDisposable Push()PUBLICVIRTUAL

Returns:IDisposable—

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

We have received a snapshot of the world.

ParameterTypeDescription
msgSnapshotMsg—
Returns:Task—

protected virtual void Tick()PROTECTEDVIRTUAL

Returns:void—

protected string WorkoutMapName()PROTECTED

Returns:string—

On this page