Table of Contents

Class ObjectPropertyList

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

A zero-allocation implementation of the Mega Cliloc (0xD6) packet. Implements IPropertyList to write cliloc IDs and string formats directly to a reusable buffer.

public sealed class ObjectPropertyList : BaseGameNetworkPacket, IGameNetworkPacket, IPropertyList, IDisposable
Inheritance
ObjectPropertyList
Implements
IPropertyList
Inherited Members

Constructors

ObjectPropertyList(Serial)

public ObjectPropertyList(Serial serial)

Parameters

serial Serial

Properties

Hash

public int Hash { get; }

Property Value

int

Header

public uint Header { get; }

Property Value

uint

Serial

public Serial Serial { get; }

Property Value

Serial

Methods

Add(string)

Adds a plain text string to the property list. Uses a generic cliloc internally.

public void Add(string text)

Parameters

text string

Add(uint)

Adds a cliloc without arguments.

public void Add(uint clilocId)

Parameters

clilocId uint

Add(uint, double)

Adds a cliloc with a formatted double/float/integer.

public void Add(uint clilocId, double value)

Parameters

clilocId uint
value double

Add(uint, int)

Adds a cliloc with an integer argument.

public void Add(uint clilocId, int value)

Parameters

clilocId uint
value int

Add(uint, string)

Adds a cliloc with a text string argument.

public void Add(uint clilocId, string argument)

Parameters

clilocId uint
argument string

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

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.