public PlaySound(uint ResourceID, uint ID, PlaySound.Flags Flags, int Row, int Column, int Radius, int MaxVolume) { resourceID = ResourceID; id = ID; playflags = Flags; row = Row; column = Column; radius = Radius; maxVolume = MaxVolume; }
public override int ReadFrom(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; cursor += base.ReadFrom(Buffer, cursor); PlayInfo = new PlaySound(Buffer, cursor); cursor += PlayInfo.ByteLength; return cursor - StartIndex; }
public PlayWaveMessage(PlaySound PlayInfo) : base(MessageTypeGameMode.PlayWave) { this.PlayInfo = PlayInfo; }
public override unsafe void ReadFrom(ref byte* Buffer) { base.ReadFrom(ref Buffer); PlayInfo = new PlaySound(ref Buffer); }