Class ObjectPropertyList
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
serialSerial
Properties
Hash
public int Hash { get; }
Property Value
Header
public uint Header { get; }
Property Value
Serial
public Serial Serial { get; }
Property Value
Methods
Add(string)
Adds a plain text string to the property list. Uses a generic cliloc internally.
public void Add(string text)
Parameters
textstring
Add(uint)
Adds a cliloc without arguments.
public void Add(uint clilocId)
Parameters
clilocIduint
Add(uint, double)
Adds a cliloc with a formatted double/float/integer.
public void Add(uint clilocId, double value)
Parameters
Add(uint, int)
Adds a cliloc with an integer argument.
public void Add(uint clilocId, int value)
Parameters
Add(uint, string)
Adds a cliloc with a text string argument.
public void Add(uint clilocId, string argument)
Parameters
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
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.