コード例 #1
0
 public MutableStringTableEntry(SourceDemo demoRef, MutableStringTable tableRef, StringTableEntryData?eData, string entryName)
 {
     _demoRef  = demoRef;
     _tableRef = tableRef;
     EntryData = eData;
     EntryName = entryName;
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
 }
コード例 #4
0
        private void AddTableClass(MutableStringTable table, string name, string?data)
        {
            if (!TableReadable[table.Name])
            {
                return;
            }
            var stc = new MutableStringTableClass(name, data);

            table.Classes.Add(stc);
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }