Пример #1
0
 public T0Header(BinaryReader br) : base(br)
 {
     /* 0x08 */
     End = br.ReadBigInt32();
     br.BaseStream.Position = Start.Offset;
     for (int i = 0; i < Entries; i++)
     {
         DisplayLists.Add(new DisplayEntry(br));
     }
 }
Пример #2
0
            public T1Header(BinaryReader br) : base(br)
            {
                /* 0x08 */
                if (Format == 1)
                {
                    Backgrounds.Add(new StaticBackground(br));
                }
                else if (Format == 2)
                {
                    byte count = br.ReadByte();
                    br.BaseStream.Position += 3;
                    bgAddr = br.ReadBigInt32();
                    for (int i = 0; i < count; i++)
                    {
                        Backgrounds.Add(new StaticBackground(br, true));
                        br.BaseStream.Position += 2;
                    }
                }

                br.BaseStream.Position = Start.Offset;
                DisplayLists.Add(new DisplayEntry(br));
            }