コード例 #1
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     EntityIndex = buf.ReadBits(11);
     ClassId     = buf.ReadBits(9);
     buf.SeekBits(buf.ReadBits(11));
     return(Task.CompletedTask);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        public override Task Read(SourceBufferReader buf, SourceDemo demo)
        {
            MaxEntries     = buf.ReadBits(11);
            IsDelta        = buf.ReadBoolean();
            DeltaFrom      = (IsDelta) ? buf.ReadInt32() : 0;
            BaseLine       = buf.ReadBoolean();
            UpdatedEntries = buf.ReadBits(11);
            var length = buf.ReadBits(20);

            UpdateBaseline = buf.ReadBoolean();
            buf.SeekBits(length);
            return(Task.CompletedTask);
        }
コード例 #4
0
 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);
 }
コード例 #5
0
        public override Task Read(SourceBufferReader buf, SourceDemo demo)
        {
            TableName  = buf.ReadString();
            MaxEntries = buf.ReadUInt16();
            var bits = (int)System.Math.Log(MaxEntries, 2) + 1;

            Entries = bits != 1 ? buf.ReadUBits(bits) : buf.ReadUBits(1);
            var length = buf.ReadBits(20);

            UserDataFixedSize = buf.ReadBoolean();
            UserDataSize      = (UserDataFixedSize) ? buf.ReadBits(12) : 0;
            UserDataSizeBits  = (UserDataFixedSize) ? buf.ReadBits(4) : 0;
            Flags             = buf.ReadBits(demo.Protocol == 4 ? 2 : 1);
            buf.SeekBits(length);
            return(Task.CompletedTask);
        }
コード例 #6
0
        public override Task Read(SourceBufferReader buf, SourceDemo demo)
        {
            var size = buf.ReadBits(8);

            while (size-- != 0)
            {
                ConVars.Add(new ConVar()
                {
                    Name  = buf.ReadString(),
                    Value = buf.ReadString()
                });
            }
            return(Task.CompletedTask);
        }
コード例 #7
0
        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);
        }
コード例 #8
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     MessageType = buf.ReadByte();
     buf.SeekBits(buf.ReadBits(demo.Protocol == 4 ? 12 : 11));
     return(Task.CompletedTask);
 }
コード例 #9
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Events = buf.ReadBits(9);
     buf.SeekBits(buf.ReadBits(20));
     return(Task.CompletedTask);
 }
コード例 #10
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     SoundIndex = buf.ReadBits(13);
     return(Task.CompletedTask);
 }
コード例 #11
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Unk = buf.ReadOneBit();
     buf.SeekBits(buf.ReadBits(11));
     return(Task.CompletedTask);
 }
コード例 #12
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Entries = buf.ReadBits(8);
     buf.SeekBits(buf.ReadBits(17));
     return(Task.CompletedTask);
 }