Esempio n. 1
0
 public void ReadFromStream(Stream stream)
 {
     Header = stream.ReadContent<YkdHeader>();
     Background = stream.ReadContent<YkdBlock>();
     Offsets = stream.ReadContent<YkdOffsets>();
     Blocks = new YkdBlock[Offsets.Count];
     for (int i = 0; i < Blocks.Length; i++)
     {
         stream.SetPosition(Offsets[i]);
         Blocks[i] = stream.ReadContent<YkdBlock>();
     }
     Resources = stream.ReadContent<YkdResources>();
 }
Esempio n. 2
0
 public void ReadFromStream(Stream stream)
 {
     Header     = stream.ReadContent <YkdHeader>();
     Background = stream.ReadContent <YkdBlock>();
     Offsets    = stream.ReadContent <YkdOffsets>();
     Blocks     = new YkdBlock[Offsets.Count];
     for (int i = 0; i < Blocks.Length; i++)
     {
         stream.SetPosition(Offsets[i]);
         Blocks[i] = stream.ReadContent <YkdBlock>();
     }
     Resources = stream.ReadContent <YkdResources>();
 }