Table of Contents

Class SetTimePacket

Namespace
Moongate.Network.Packets.Outgoing.World
Assembly
Moongate.Network.Packets.dll
[PacketHandler(91, PacketSizing.Fixed, Length = 4, Description = "Set Time")]
public class SetTimePacket : BaseGameNetworkPacket, IGameNetworkPacket
Inheritance
SetTimePacket
Implements
Inherited Members

Constructors

SetTimePacket()

public SetTimePacket()

SetTimePacket(DateTime)

public SetTimePacket(DateTime time)

Parameters

time DateTime

Properties

Time

public DateTime Time { get; set; }

Property Value

DateTime

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.