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
subcommandTypeGeneralInformationSubcommandTypesubcommandDataReadOnlyMemory<byte>
Properties
SubcommandData
public ReadOnlyMemory<byte> SubcommandData { get; set; }
Property Value
SubcommandType
public GeneralInformationSubcommandType SubcommandType { get; set; }
Property Value
Methods
Create(GeneralInformationSubcommandType, ReadOnlyMemory<byte>)
public static GeneralInformationPacket Create(GeneralInformationSubcommandType subcommandType, ReadOnlyMemory<byte> subcommandData)
Parameters
subcommandTypeGeneralInformationSubcommandTypesubcommandDataReadOnlyMemory<byte>
Returns
CreateSetCursorHueSetMap(Map?)
public static GeneralInformationPacket CreateSetCursorHueSetMap(Map? map)
Parameters
mapMap
Returns
CreateSetCursorHueSetMap(byte)
public static GeneralInformationPacket CreateSetCursorHueSetMap(byte mapId)
Parameters
mapIdbyte
Returns
ParsePayload(ref SpanReader)
Parses packet-specific payload after opcode validation.
protected override bool ParsePayload(ref SpanReader reader)
Parameters
readerSpanReaderPacket span reader positioned after opcode.
Returns
- bool
truewhen payload parsing succeeds; otherwisefalse.
Write(ref SpanWriter)
Writes packet content to the target span writer.
public override void Write(ref SpanWriter writer)
Parameters
writerSpanWriterDestination writer.