Class SetMusicPacket
[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
musicMusicName
SetMusicPacket(int)
public SetMusicPacket(int musicId)
Parameters
musicIdint
Properties
MusicId
public int MusicId { get; set; }
Property Value
Methods
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.