public override int ReadFrom(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; cursor += base.ReadFrom(Buffer, cursor); PlayInfo = new StopSound(Buffer, cursor); cursor += PlayInfo.ByteLength; return cursor - StartIndex; }
public StopWaveMessage(StopSound PlayInfo) : base(MessageTypeGameMode.StopWave) { this.PlayInfo = PlayInfo; }
public override unsafe void ReadFrom(ref byte* Buffer) { base.ReadFrom(ref Buffer); PlayInfo = new StopSound(ref Buffer); }