public MutableStringTableEntry(SourceDemo demoRef, MutableStringTable tableRef, StringTableEntryData?eData, string entryName) { _demoRef = demoRef; _tableRef = tableRef; EntryData = eData; EntryName = entryName; }
private MutableStringTable InitNewTable(int id, SvcCreateStringTable creationInfo) { var table = new MutableStringTable(id, creationInfo); _privateTables.Add(table); Tables[creationInfo.TableName] = table; TableReadable[creationInfo.TableName] = true; return(table); }
internal MutableStringTableEntry?SetEntryData(MutableStringTable table, MutableStringTableEntry entry) { if (!TableReadable[table.Name]) { return(null); } entry.EntryData = StringTableEntryDataFactory.CreateEntryData(_demoRef, null, table.Name, entry.EntryName); return(entry); }
private void AddTableClass(MutableStringTable table, string name, string?data) { if (!TableReadable[table.Name]) { return; } var stc = new MutableStringTableClass(name, data); table.Classes.Add(stc); }
private MutableStringTableEntry?AddTableEntry(MutableStringTable table, StringTableEntryData?eData, string entryName) { if (!TableReadable[table.Name]) { return(null); } var entry = new MutableStringTableEntry(_demoRef, table, eData, entryName); table.AddNewEntry(entry); return(entry); }
internal MutableStringTableEntry?AddTableEntry( MutableStringTable table, ref BitStreamReader?entryStream, int?decompressedIndex, string entryName) { var entry = AddTableEntry(table, null, entryName); if (entryStream.HasValue && entry != null) { entry.EntryData = StringTableEntryDataFactory.CreateEntryData(_demoRef, decompressedIndex, table.Name, entryName); entry.EntryData.ParseStream(entryStream.Value); } return(entry); }