Table of Contents

Class ServerListPacket

Namespace
Moongate.Network.Packets.Outgoing.Login
Assembly
Moongate.Network.Packets.dll
[PacketHandler(168, PacketSizing.Variable, Description = "Game Server List")]
public class ServerListPacket : BaseGameNetworkPacket, IGameNetworkPacket
Inheritance
ServerListPacket
Implements
Inherited Members

Constructors

ServerListPacket()

public ServerListPacket()

ServerListPacket(params GameServerEntry[])

public ServerListPacket(params GameServerEntry[] entries)

Parameters

entries GameServerEntry[]

Properties

Shards

public List<GameServerEntry> Shards { get; }

Property Value

List<GameServerEntry>

Methods

AddShard(GameServerEntry)

public void AddShard(GameServerEntry entry)

Parameters

entry GameServerEntry

ParsePayload(ref SpanReader)

Parses packet-specific payload after opcode validation.

protected override bool ParsePayload(ref SpanReader reader)

Parameters

reader SpanReader

Packet span reader positioned after opcode.

Returns

bool

true when payload parsing succeeds; otherwise false.

Write(ref SpanWriter)

Writes packet content to the target span writer.

public override void Write(ref SpanWriter writer)

Parameters

writer SpanWriter

Destination writer.