ResourceBuilderController.AssetData.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 AssetData
  12. {
  13. private readonly string m_Guid;
  14. private readonly string m_Name;
  15. private readonly int m_Length;
  16. private readonly int m_HashCode;
  17. private readonly string[] m_DependencyAssetNames;
  18. public AssetData(string guid, string name, int length, int hashCode, string[] dependencyAssetNames)
  19. {
  20. m_Guid = guid;
  21. m_Name = name;
  22. m_Length = length;
  23. m_HashCode = hashCode;
  24. m_DependencyAssetNames = dependencyAssetNames;
  25. }
  26. public string Guid
  27. {
  28. get
  29. {
  30. return m_Guid;
  31. }
  32. }
  33. public string Name
  34. {
  35. get
  36. {
  37. return m_Name;
  38. }
  39. }
  40. public int Length
  41. {
  42. get
  43. {
  44. return m_Length;
  45. }
  46. }
  47. public int HashCode
  48. {
  49. get
  50. {
  51. return m_HashCode;
  52. }
  53. }
  54. public string[] GetDependencyAssetNames()
  55. {
  56. return m_DependencyAssetNames;
  57. }
  58. }
  59. }
  60. }