TexProps.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using Microsoft.Xna.Framework;
  2. using System.Collections.Generic;
  3. namespace OpenVIII
  4. {
  5. public abstract partial class SP2
  6. {
  7. #region Classes
  8. public class TexProps
  9. {
  10. #region Fields
  11. /// <summary>
  12. /// For big textures.
  13. /// </summary>
  14. public List<BigTexProps> Big;
  15. /// <summary>
  16. /// Override palette of texture to this and don't load other palettes. If null ignore.
  17. /// </summary>
  18. public Color[] Colors;
  19. /// <summary>
  20. /// Number of Textures
  21. /// </summary>
  22. public uint Count;
  23. /// Filename. To match more than one number use {0:00} or {00:00} for ones with leading
  24. /// zeros. </summary>
  25. public string Filename;
  26. #endregion Fields
  27. #region Properties
  28. /// <summary>
  29. /// Position in Filename of texture
  30. /// </summary>
  31. public uint Offset { get; set; }
  32. #endregion Properties
  33. //public TexProps(string filename, uint Count, params BigTexProps[] big)
  34. //{
  35. // Filename = filename;
  36. // Count = Count;
  37. // if (big != null && Count != big.Length && big.Length > 0)
  38. // throw new Exception($"Count of big textures should match small ones {Count} != {big.Length}");
  39. // Big = big.ToList();
  40. // Colors = null;
  41. //}
  42. //public TexProps(string filename, uint Count, Color[] colors, params BigTexProps[] big)
  43. //{
  44. // Filename = filename;
  45. // Count = Count;
  46. // if (big != null && Count != big.Length && big.Length > 0)
  47. // throw new Exception($"Count of big textures should match small ones {Count} != {big.Length}");
  48. // Big = big.ToList();
  49. // Colors = colors;
  50. //}
  51. //Texture_Base.TextureType TextureType;
  52. }
  53. #endregion Classes
  54. }
  55. }