Table of Contents

Class WarModePacket

Namespace
Moongate.Network.Packets.Outgoing.World
Assembly
Moongate.Network.Packets.dll

Outbound war mode state packet (opcode 0x72). This packet intentionally has no PacketHandler attribute to avoid registry opcode collision with inbound RequestWarModePacket, since registry is currently direction-agnostic.

public class WarModePacket : BaseGameNetworkPacket, IGameNetworkPacket
Inheritance
WarModePacket
Implements
Inherited Members

Constructors

WarModePacket()

public WarModePacket()

WarModePacket(UOMobileEntity)

public WarModePacket(UOMobileEntity mobile)

Parameters

mobile UOMobileEntity

Properties

Mobile

public UOMobileEntity? Mobile { get; set; }

Property Value

UOMobileEntity

Methods

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.