public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     EntityIndex = buf.ReadBits(11);
     ClassId     = buf.ReadBits(9);
     buf.SeekBits(buf.ReadBits(11));
     return(Task.CompletedTask);
 }
Example #2
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     FromClient = buf.ReadByte();
     Proximity  = buf.ReadByte();
     Length     = buf.ReadUInt16();
     buf.SeekBits(Length);
     return(Task.CompletedTask);
 }
Example #3
0
 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);
 }
Example #5
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);
        }
Example #6
0
        public override Task Read(SourceBufferReader buf, SourceDemo demo)
        {
            ReliableSound = buf.ReadBoolean();
            Sounds        = (ReliableSound)
                ? 1
                : buf.ReadUBits(8);
            var length = (ReliableSound)
                ? buf.ReadUBits(8)
                : buf.ReadUBits(16);

            buf.SeekBits((int)length);
            return(Task.CompletedTask);
        }
Example #7
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);
        }
Example #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);
 }
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Events = buf.ReadBits(9);
     buf.SeekBits(buf.ReadBits(20));
     return(Task.CompletedTask);
 }
Example #10
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Unk = buf.ReadOneBit();
     buf.SeekBits(buf.ReadBits(11));
     return(Task.CompletedTask);
 }
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     buf.SeekBits((int)buf.ReadUBits(11));
     return(Task.CompletedTask);
 }
Example #12
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     buf.SeekBits(buf.ReadInt32());
     return(Task.CompletedTask);
 }
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Entries = buf.ReadBits(8);
     buf.SeekBits(buf.ReadBits(17));
     return(Task.CompletedTask);
 }