Esempio n. 1
0
        private void ReadScriptGlb(BinaryReader reader)
        {
            var scriptHeader = new FruaSecondGlbHeader
                {
                    EntryCount = reader.ReadUInt32(),
                    DataText = new string(reader.ReadChars(4))
                };

            _statusMessage = string.Format("SCRIPT.GLB {0} entries", scriptHeader.EntryCount);
            var offsets = new List<uint>();

            for (int i = 0; i < scriptHeader.EntryCount; i++)
            {
                offsets.Add(reader.ReadUInt32());
            }

            // TODO not complete see SCRIPT.TXT in HACKDOCS
            foreach (var offset in offsets)
            {
                reader.BaseStream.Seek(offset, SeekOrigin.Begin);
            }
        }
Esempio n. 2
0
        private void ReadScriptGlb(BinaryReader reader)
        {
            var scriptHeader = new FruaSecondGlbHeader
            {
                EntryCount = reader.ReadUInt32(),
                DataText   = new string(reader.ReadChars(4))
            };

            _statusMessage = string.Format("SCRIPT.GLB {0} entries", scriptHeader.EntryCount);
            var offsets = new List <uint>();

            for (int i = 0; i < scriptHeader.EntryCount; i++)
            {
                offsets.Add(reader.ReadUInt32());
            }

            // TODO not complete see SCRIPT.TXT in HACKDOCS
            foreach (var offset in offsets)
            {
                reader.BaseStream.Seek(offset, SeekOrigin.Begin);
            }
        }