Table of Contents

Struct ChannelAddress

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Serializable struct representing a scene channel, including server connection info, scene identity, and population. Used for channel selection and network communication.

[Serializable]
public struct ChannelAddress
Inherited Members

Fields

CharacterCount

Current number of characters in this channel.

public int CharacterCount

Field Value

int

Port

Reserved. Always zero on the wire.

public ushort Port

Field Value

ushort

Remarks

A channel switch is never a direct dial. The scene server releases the character and drops the connection; the client returns through the world server, which reads the destination from the character row and issues its own WorldSceneConnectBroadcast. A client therefore has no use for the hosting scene server's port, and sending it published which scene servers host which instances to every player who opened the picker. SceneChannelSystem leaves this at zero and ignores whatever a client echoes back in SceneChannelSelectBroadcast: the only field a selection is resolved from is SceneHandle.

SceneHandle

Identity of the scene instance this channel is: the scenes.id of its row. Process-local scene handles are not unique between scene servers and cannot be used here — see FishMMO.Shared.IPlayerCharacter.SceneHandle.

public long SceneHandle

Field Value

long

SceneName

Name of the scene this channel belongs to.

public string SceneName

Field Value

string