Пример #1
0
        private static bool TryReadSectionType(BinaryReader br, int offset, SeDbResEntry entry, out SectionType type)
        {
            br.BaseStream.SetPosition(entry.Offset + offset);

            int magic = br.ReadInt32();
            if (magic != SectionHeader.MagicNumber)
            {
                type = 0;
                return false;
            }

            type = (SectionType)br.ReadInt32();
            return true;
        }
Пример #2
0
 public UiSeDbTableLeaf(string name, SeDbResEntry entry, SeDbArchiveListing listing)
     : base(name, UiNodeType.DataTableLeaf)
 {
     Entry = entry;
     Listing = listing;
 }