public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteInt16(MenuType); buf.WriteInt32(Data.Length); buf.WriteBytes(Data); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteBits(Events, 9); buf.WriteBits(Data.Length, 20); buf.WriteBytes(Data); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteBoolean(NeedsDecoder); buf.WriteInt16(Length); buf.WriteBytes(Data); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteByte(FromClient); buf.WriteByte(Proximity); buf.WriteUInt16(Length); buf.WriteBytes(Data); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteBits(EntityIndex, 11); buf.WriteBits(ClassId, 9); buf.WriteBits(Data.Length, 11); buf.WriteBytes(Data); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteBoolean(ReliableSound); if (ReliableSound) { buf.WriteUBits(Sounds, 8); } buf.WriteBits(Data.Length, (ReliableSound) ? 8 : 16); buf.WriteBytes(Data); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteBits(MaxEntries, 11); buf.WriteBoolean(IsDelta); if (IsDelta) { buf.WriteInt32(DeltaFrom); } buf.WriteBoolean(BaseLine); buf.WriteBits(UpdatedEntries, 11); buf.WriteBits(Data.Length, 20); buf.WriteBoolean(UpdateBaseline); buf.WriteBytes(Data); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteBits(TableId, 5); if (NumChangedEntries.HasValue) { buf.WriteBoolean(true); buf.WriteInt16(NumChangedEntries.Value); } else { buf.WriteBoolean(false); } buf.WriteBits(StringData.Length, 20); buf.WriteBytes(StringData); return(Task.CompletedTask); }
public override Task Write(SourceBufferWriter buf, SourceDemo demo) { buf.WriteByte(SignonState); buf.WriteInt32(SpawnCount); if (demo.Protocol == 4) { buf.WriteInt32(NumServerPlayers); if (PlayerNetworkIds.Length > 0) { buf.WriteInt32(PlayerNetworkIds.Length); buf.WriteBytes(PlayerNetworkIds); } if (MapName.Length > 0) { buf.WriteInt32(MapName.Length); buf.WriteString(MapName.AsSpan()); } } return(Task.CompletedTask); }