ResourceBuilderController.ResourceCode.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //------------------------------------------------------------
  2. // Game Framework
  3. // Copyright © 2013-2021 loyalsoft. All rights reserved.
  4. // Homepage: http://www.game7000.com/
  5. // Feedback: http://www.game7000.com/
  6. //------------------------------------------------------------
  7. namespace UnityGameFramework.Editor.ResourceTools
  8. {
  9. public sealed partial class ResourceBuilderController
  10. {
  11. private sealed class ResourceCode
  12. {
  13. private readonly Platform m_Platform;
  14. private readonly int m_Length;
  15. private readonly int m_HashCode;
  16. private readonly int m_CompressedLength;
  17. private readonly int m_CompressedHashCode;
  18. public ResourceCode(Platform platform, int length, int hashCode, int compressedLength, int compressedHashCode)
  19. {
  20. m_Platform = platform;
  21. m_Length = length;
  22. m_HashCode = hashCode;
  23. m_CompressedLength = compressedLength;
  24. m_CompressedHashCode = compressedHashCode;
  25. }
  26. public Platform Platform
  27. {
  28. get
  29. {
  30. return m_Platform;
  31. }
  32. }
  33. public int Length
  34. {
  35. get
  36. {
  37. return m_Length;
  38. }
  39. }
  40. public int HashCode
  41. {
  42. get
  43. {
  44. return m_HashCode;
  45. }
  46. }
  47. public int CompressedLength
  48. {
  49. get
  50. {
  51. return m_CompressedLength;
  52. }
  53. }
  54. public int CompressedHashCode
  55. {
  56. get
  57. {
  58. return m_CompressedHashCode;
  59. }
  60. }
  61. }
  62. }
  63. }