public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"portal: {Portal}"); pw.AppendLine($"portalled: {Portalled}"); pw.AppendLine($"new position: {NewPosition:F3}"); pw.Append($"new angles: <{NewAngles.X:F3}°, {NewAngles.Y:F3}°, {NewAngles.Z:F3}°>"); }
public override void PrettyWrite(IPrettyWriter iw) { iw.AppendLine($"m_Conditions: {Conditions.SequenceToString()}"); iw.AppendLine($"m_CustomInterruptConditions: {CustomInterruptConditions.SequenceToString()}"); iw.AppendLine($"m_ConditionsPreIgnore: {ConditionsPreIgnore.SequenceToString()}"); iw.Append($"m_IgnoreConditions: {IgnoreConditions.SequenceToString()}"); }
public override void PrettyWrite(IPrettyWriter pw) { Debug.Assert(Tables.Count > 0, "there's no tables hmmmmmmmmmmmm"); pw.Append($"{Tables.Count} send table{(Tables.Count > 1 ? "s" : "")}:"); pw.FutureIndent++; foreach (SendTable sendTable in Tables) { pw.AppendLine(); sendTable.PrettyWrite(pw); } pw.FutureIndent--; pw.AppendLine(); if ((ServerClasses?.Count ?? 0) > 0) { pw.Append($"{ServerClasses!.Count} class{(ServerClasses.Count > 1 ? "es" : "")}:"); pw.FutureIndent++; foreach (ServerClass classInfo in ServerClasses) { pw.AppendLine(); classInfo.PrettyWrite(pw); } pw.FutureIndent--; } else { pw.Append("no classes"); } }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"spectator mode: {SpecMode}"); pw.AppendLine($"target 1: {Target1}"); pw.AppendLine($"target 2: {Target2}"); pw.Append($"unknown: {Unknown}"); }
public override void PrettyWrite(IPrettyWriter iw) { iw.Append(Name); iw.FutureIndent++; iw.AppendLine($"\nversion: {Version}"); iw.AppendLine($"ID: {Id}"); BlockHeadersInfo.PrettyWrite(iw); iw.Append($"\n{SaveGameHeaders.Count} headers:"); EnumerablePrettyWriteHelper(SaveGameHeaders, iw, false); SaveHeader.PrettyWrite(iw); iw.AppendLine(); if (AdjacencyList != null) { iw.Append("adjacents: "); EnumerablePrettyWriteHelper(AdjacencyList, iw, false); } if (LightStyleList != null) { iw.Append("light styles: "); EnumerablePrettyWriteHelper(LightStyleList, iw, false); } iw.Append($"{Blocks.Count} blocks:"); EnumerablePrettyWriteHelper(Blocks, iw); // add last field bool iw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"duration: {Duration}"); pw.AppendLine($"hold time: {HoldTime}"); pw.AppendLine($"flags: {Flags}"); pw.Append($"RGBA: {R:D3}, {G:D3}, {B:D3}, {A:D3}"); }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"armor: {Armor}"); pw.AppendLine($"damage taken: {DamageTaken}"); pw.AppendLine($"bits damage: {BitsDamage}"); pw.Append($"vec from: {VecFrom:F3}"); }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"command: {Command}"); pw.AppendLine($"amplitude: {Amplitude}"); pw.AppendLine($"frequency: {Frequency}"); pw.Append($"duration: {Duration}"); }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"client ID: {ClientId}"); pw.AppendLine($"string: {Str.Replace("\n", @"\n")}"); pw.Append($"wants to chat: {WantsToChat}"); /*if (DemoInfo.NewDemoProtocol) * iw.Append($"unknown: {Unknown}");*/ }
public override void PrettyWrite(IPrettyWriter pw) { foreach (CmdInfo cmdInfo in PacketInfo) { cmdInfo.PrettyWrite(pw); } pw.AppendLine($"in sequence: {InSequence}"); pw.AppendLine($"out sequence: {OutSequence}"); MessageStream.PrettyWrite(pw); }
public override void PrettyWrite(IPrettyWriter pw) { pw.Append(TableName != null ? $"table: {TableName}" : "table id:"); pw.AppendLine($" ({TableId})"); pw.AppendLine($"number of changed entries: {ChangedEntriesCount}"); pw.Append("table update:"); pw.FutureIndent++; pw.AppendLine(); TableUpdates.PrettyWrite(pw); pw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter iw) { base.PrettyWrite(iw); iw.FutureIndent++; iw.AppendLine(); Header.PrettyWrite(iw); if (Constraint != null) { iw.AppendLine(); Constraint.PrettyWrite(iw); } iw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter iw) { base.PrettyWrite(iw); iw.FutureIndent++; iw.AppendLine(); ObjectTemplate.PrettyWrite(iw); if (ControllerTemplate != null) { iw.AppendLine(); ControllerTemplate.PrettyWrite(iw); } iw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"file stamp: {FileStamp}"); pw.AppendLine($"demo protocol: {DemoProtocol}"); pw.AppendLine($"network protocol: {NetworkProtocol}"); pw.AppendLine($"server name: {ServerName}"); pw.AppendLine($"client name: {ClientName}"); pw.AppendLine($"map name: {MapName}"); pw.AppendLine($"game directory: {GameDirectory}"); pw.AppendLine($"playback time: {PlaybackTime}"); pw.AppendLine($"tick count: {TickCount}"); pw.AppendLine($"frame count: {FrameCount}"); pw.Append($"sign on length: {SignOnLength}"); }
public override void PrettyWrite(IPrettyWriter pw) { pw.Append("player masks:"); pw.FutureIndent++; for (int i = 0; i < PlayerMasks.Length; i++) { pw.AppendLine(); pw.AppendLine($"game rules mask #{i + 1}: {PlayerMasks[i].GameRulesMask}"); pw.Append($"ban mask #{i + 1}: {PlayerMasks[i].BanMask}"); } pw.FutureIndent--; pw.AppendLine(); pw.Append($"player mod enable: {PlayerModEnable}"); }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"name: {TableName}"); pw.AppendLine($"max entries: {MaxEntries}"); pw.AppendLine($"number of entries: {NumEntries}"); pw.AppendLine($"user data fixed size: {UserDataFixedSize}"); pw.AppendLine($"user data size: {UserDataSize}"); pw.AppendLine($"user data size in bits: {UserDataSizeBits}"); if (DemoRef.Header.NetworkProtocol >= 15) { pw.AppendLine($"flags: {Flags}"); } pw.Append("table update:"); pw.FutureIndent++; pw.AppendLine(); if (TableUpdates == null) { pw.Append("table update could not be parsed"); } else { TableUpdates.PrettyWrite(pw); } pw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"create on client: {CreateOnClient}"); pw.Append($"{ServerClasses?.Length ?? ClassCount} server classes{(CreateOnClient ? "" : ":")}"); if (!CreateOnClient && ServerClasses != null) { pw.FutureIndent++; foreach (ServerClass serverClass in ServerClasses) { pw.AppendLine(); serverClass.PrettyWrite(pw); } pw.FutureIndent--; } }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"paint type: {PaintType.ToString()}"); pw.AppendLine($"handle: {EHandle}"); pw.AppendLine($"unknown floats: {UnkHf1}, {UnkHf2}"); pw.AppendLine($"center: {Center}"); pw.Append($"all {Positions.Length} positions: "); pw.FutureIndent++; foreach (Vector3 pos in Positions) { pw.AppendLine(); pw.Append(pos.ToString()); } pw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter pw) { if (EntryData != null) { if ((EntryData.ContentsKnown && !EntryData.InlineToString) || (EntryData.InlineToString && TableRef.TableEntries.Count == 1)) { pw.Append(Name); if (EntryData.InlineToString) { pw.Append(": "); EntryData.PrettyWrite(pw); } else { pw.FutureIndent++; pw.AppendLine(); EntryData.PrettyWrite(pw); pw.FutureIndent--; } } else { pw.Append(Name.PadRight(PadLength + 2, '.')); EntryData.PrettyWrite(pw); } } else { pw.Append(Name); } }
public override void PrettyWrite(IPrettyWriter iw) { iw.Append("UtilMap<"); iw.Append(KeyDesc.FieldType == EMBEDDED ? KeyDesc.EmbeddedMap !.ClassName : KeyDesc.TypeString); iw.Append(","); iw.Append(ValDesc.FieldType == EMBEDDED ? ValDesc.EmbeddedMap !.ClassName : ValDesc.TypeString); iw.Append($">[{Elements.Length}] {Desc.Name}" + (Elements.Length > 0 ? ":" : "")); if (Elements.Length > 0) { iw.FutureIndent++; for (int i = 0; i < Elements.Length; i++) { var(key, value) = Elements[i]; iw.Append("\n{"); key.PrettyWriteWithCustomPad(iw); iw.Append(","); if (ValDesc.FieldType == EMBEDDED) { iw.AppendLine(); } value.PrettyWriteWithCustomPad(iw); iw.Append("}"); if (i < Elements.Length - 1) { iw.Append(","); } } iw.FutureIndent--; } }
public override void PrettyWrite(IPrettyWriter iw) { base.PrettyWrite(iw); iw.FutureIndent++; iw.AppendLine(); MotionController.PrettyWrite(iw); iw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter iw) { base.PrettyWrite(iw); iw.FutureIndent++; iw.AppendLine(); GroupTemplate.PrettyWrite(iw); iw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter pw) { foreach (StringTable table in Tables) { table.PrettyWrite(pw); pw.AppendLine(); } }
public override void PrettyWrite(IPrettyWriter iw) { base.PrettyWrite(iw); iw.FutureIndent++; iw.AppendLine(); PhysHeader.PrettyWrite(iw); iw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"position: {Pos:F4}"); var mgr = DemoRef.StringTablesManager; pw.Append(mgr.TableReadable.GetValueOrDefault(TableNames.DecalPreCache) ? $"decal texture: {mgr.Tables[TableNames.DecalPreCache].Entries[DecalTextureIndex]}" : "decal texture index:"); pw.AppendLine($" [{DecalTextureIndex}]"); if (EntityIndex.HasValue) { pw.AppendLine($"entity index: {EntityIndex}"); pw.AppendLine($"model index: {ModelIndex}"); } pw.Append($"low priority: {LowPriority}"); }
public override void PrettyWrite(IPrettyWriter pw) { pw.Append($"type: {DataType}"); pw.FutureIndent++; pw.AppendLine(); DataMessage.PrettyWrite(pw); pw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter iw) { iw.Append("CActivityData:"); iw.FutureIndent++; iw.AppendLine(); iw.Append(Index.HasValue ? $"activity index: {Index.Value}" : $"name: {Name!}"); iw.FutureIndent--; }
public override void PrettyWrite(IPrettyWriter pw) { pw.AppendLine($"codec: {Codec}"); pw.Append($"quality: {Quality}"); if (Quality == 255) { pw.Append($"\nunknown: {Unknown}"); } }
public override void PrettyWrite(IPrettyWriter pw) { pw.Append($"engine tick: {EngineTick}"); if (DemoInfo.Game != SourceGame.HL2_OE) { pw.AppendLine($"\nhost frame time: {HostFrameTime}"); pw.Append($"host frame time std dev: {HostFrameTimeStdDev}"); } }
public override void PrettyWrite(IPrettyWriter pw) { pw.Append($"channel: {Channel}"); if (MsgInfo != null) { pw.AppendLine(); MsgInfo.PrettyWrite(pw); } }