DebuggerComponent.RuntimeMemoryInformationWindow.Sample.cs 1.9 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.Runtime
  8. {
  9. public sealed partial class DebuggerComponent : GameFrameworkComponent
  10. {
  11. private sealed partial class RuntimeMemoryInformationWindow<T> : ScrollableDebuggerWindowBase where T : UnityEngine.Object
  12. {
  13. private sealed class Sample
  14. {
  15. private readonly string m_Name;
  16. private readonly string m_Type;
  17. private readonly long m_Size;
  18. private bool m_Highlight;
  19. public Sample(string name, string type, long size)
  20. {
  21. m_Name = name;
  22. m_Type = type;
  23. m_Size = size;
  24. m_Highlight = false;
  25. }
  26. public string Name
  27. {
  28. get
  29. {
  30. return m_Name;
  31. }
  32. }
  33. public string Type
  34. {
  35. get
  36. {
  37. return m_Type;
  38. }
  39. }
  40. public long Size
  41. {
  42. get
  43. {
  44. return m_Size;
  45. }
  46. }
  47. public bool Highlight
  48. {
  49. get
  50. {
  51. return m_Highlight;
  52. }
  53. set
  54. {
  55. m_Highlight = value;
  56. }
  57. }
  58. }
  59. }
  60. }
  61. }