コード例 #1
0
 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);
 }
コード例 #2
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     CmdNumber = buf.Read <int>();
     Buffer    = new SourceBufferReader(buf.ReadBufferField());
     return(Task.CompletedTask);
 }
コード例 #3
0
 public override Task Read(SourceBufferReader buf, SourceDemo demo)
 {
     Text = buf.Read <string>();
     return(Task.CompletedTask);
 }