public override Task Read(SourceBufferReader buf, SourceDemo demo) { for (int i = 0; i < (demo.Game.MaxSplitscreenClients ?? 1); i++) { Info.Add(new PacketInfo { Flags = (DemoFlags)buf.Read <int>(), ViewOrigin = buf.Read <Vector>(), ViewAngles = buf.Read <QAngle>(), LocalViewAngles = buf.Read <QAngle>(), ViewOrigin2 = buf.Read <Vector>(), ViewAngles2 = buf.Read <QAngle>(), LocalViewAngles2 = buf.Read <QAngle>() }); } InSequence = buf.Read <int>(); OutSequence = buf.Read <int>(); Buffer = new SourceBufferReader(buf.ReadBufferField()); return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { CmdNumber = buf.Read <int>(); Buffer = new SourceBufferReader(buf.ReadBufferField()); return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { Text = buf.Read <string>(); return(Task.CompletedTask); }