EanFile.cs 611 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.IO;
  3. namespace Xft
  4. {
  5. internal class EanFile
  6. {
  7. public void Load(BinaryReader br, FileStream fs)
  8. {
  9. this.Header = br.ReadInt32();
  10. this.Version = br.ReadInt32();
  11. this.Reserved = br.ReadInt32();
  12. this.AnimCount = br.ReadInt32();
  13. this.Anims = new EanAnimation[this.AnimCount];
  14. for (int i = 0; i < this.AnimCount; i++)
  15. {
  16. this.Anims[i] = new EanAnimation();
  17. this.Anims[i].Load(br, fs);
  18. }
  19. }
  20. public int Header;
  21. public int Version;
  22. public int Reserved;
  23. public int AnimCount;
  24. public EanAnimation[] Anims;
  25. }
  26. }