public override Task Read(SourceBufferReader buf, SourceDemo demo) { Tick = buf.ReadInt32(); HostFrameTime = buf.ReadInt16(); HostFrameTimeStdDeviation = buf.ReadInt16(); return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { Relative = buf.ReadBoolean(); Angle = new QAngle ( buf.ReadInt16(), buf.ReadInt16(), buf.ReadInt16() ); return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { Protocol = buf.ReadInt16(); ServerCount = buf.ReadInt32(); IsHltv = buf.ReadBoolean(); IsDedicated = buf.ReadBoolean(); ClientCrc = buf.ReadInt32(); MaxClasses = buf.ReadUInt16(); MapCrc = buf.ReadInt32(); PlayerSlot = buf.ReadByte(); MaxClients = buf.ReadByte(); if (demo.Protocol == 4) { Unk = buf.ReadInt32(); } else if (demo.NetworkProtocol == 24) { Unk = buf.ReadBits(96); } TickInterval = buf.ReadSingle(); OperatingSystem = buf.ReadChar(); GameDir = buf.ReadString(); MapName = buf.ReadString(); SkyName = buf.ReadString(); HostName = buf.ReadString(); return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { NeedsDecoder = buf.ReadBoolean(); Length = buf.ReadInt16(); buf.SeekBits(Length); //Data = buf.ReadBytes(Length); return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { TableId = buf.ReadBits(5); if (buf.ReadBoolean()) { NumChangedEntries = buf.ReadInt16(); } buf.SeekBits(buf.ReadBits(20)); return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { var length = buf.ReadInt16(); CreateOnClient = buf.ReadBoolean(); if (!CreateOnClient) { while (length-- > 0) { ServerClasses.Add(new ServerClassInfo() { ClassId = (short)buf.ReadBits((int)System.Math.Log(length, 2) + 1), ClassName = buf.ReadString(), DataTableName = buf.ReadString() }); } } return(Task.CompletedTask); }
public override Task Read(SourceBufferReader buf, SourceDemo demo) { MenuType = buf.ReadInt16(); Data = buf.ReadBytes(buf.ReadInt32()); return(Task.CompletedTask); }