Table of Contents

Class PlayerStatusPacket

Namespace
Moongate.Network.Packets.Outgoing.Entity
Assembly
Moongate.Network.Packets.dll
[PacketHandler(17, PacketSizing.Variable, Description = "Status Bar Info")]
public class PlayerStatusPacket : BaseGameNetworkPacket, IGameNetworkPacket
Inheritance
PlayerStatusPacket
Implements
Inherited Members

Constructors

PlayerStatusPacket()

public PlayerStatusPacket()

PlayerStatusPacket(UOMobileEntity, byte, bool)

public PlayerStatusPacket(UOMobileEntity mobile, byte version = 0, bool canBeRenamed = false)

Parameters

mobile UOMobileEntity
version byte
canBeRenamed bool

Properties

CanBeRenamed

public bool CanBeRenamed { get; set; }

Property Value

bool

CurrentHits

public ushort CurrentHits { get; set; }

Property Value

ushort

MaxHits

public ushort MaxHits { get; set; }

Property Value

ushort

Mobile

public UOMobileEntity? Mobile { get; set; }

Property Value

UOMobileEntity

Name

public string Name { get; set; }

Property Value

string

Serial

public Serial Serial { get; set; }

Property Value

Serial

Version

public byte Version { get; set; }

Property Value

byte

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.