Table of Contents

Class SetMusicPacket

Namespace
Moongate.Network.Packets.Outgoing.World
Assembly
Moongate.Network.Packets.dll
[PacketHandler(109, PacketSizing.Fixed, Length = 3, Description = "Set Music")]
public class SetMusicPacket : BaseGameNetworkPacket, IGameNetworkPacket
Inheritance
SetMusicPacket
Implements
Inherited Members

Constructors

SetMusicPacket()

public SetMusicPacket()

SetMusicPacket(MusicName)

public SetMusicPacket(MusicName music)

Parameters

music MusicName

SetMusicPacket(int)

public SetMusicPacket(int musicId)

Parameters

musicId int

Properties

MusicId

public int MusicId { get; set; }

Property Value

int

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.