Table of Contents

Class GeneralInformationPacket

Namespace
Moongate.Network.Packets.Incoming.GeneralInformation
Assembly
Moongate.Network.Packets.dll
[PacketHandler(191, PacketSizing.Variable, Description = "General Information Packet")]
public class GeneralInformationPacket : BaseGameNetworkPacket, IGameNetworkPacket
Inheritance
GeneralInformationPacket
Implements
Inherited Members

Constructors

GeneralInformationPacket()

public GeneralInformationPacket()

GeneralInformationPacket(GeneralInformationSubcommandType, ReadOnlyMemory<byte>)

public GeneralInformationPacket(GeneralInformationSubcommandType subcommandType, ReadOnlyMemory<byte> subcommandData)

Parameters

subcommandType GeneralInformationSubcommandType
subcommandData ReadOnlyMemory<byte>

Properties

SubcommandData

public ReadOnlyMemory<byte> SubcommandData { get; set; }

Property Value

ReadOnlyMemory<byte>

SubcommandType

public GeneralInformationSubcommandType SubcommandType { get; set; }

Property Value

GeneralInformationSubcommandType

Methods

Create(GeneralInformationSubcommandType, ReadOnlyMemory<byte>)

public static GeneralInformationPacket Create(GeneralInformationSubcommandType subcommandType, ReadOnlyMemory<byte> subcommandData)

Parameters

subcommandType GeneralInformationSubcommandType
subcommandData ReadOnlyMemory<byte>

Returns

GeneralInformationPacket

CreateSetCursorHueSetMap(Map?)

public static GeneralInformationPacket CreateSetCursorHueSetMap(Map? map)

Parameters

map Map

Returns

GeneralInformationPacket

CreateSetCursorHueSetMap(byte)

public static GeneralInformationPacket CreateSetCursorHueSetMap(byte mapId)

Parameters

mapId byte

Returns

GeneralInformationPacket

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.