EntityComponent.EntityGroup.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. using System;
  8. using UnityEngine;
  9. namespace UnityGameFramework.Runtime
  10. {
  11. public sealed partial class EntityComponent : GameFrameworkComponent
  12. {
  13. [Serializable]
  14. private sealed class EntityGroup
  15. {
  16. [SerializeField]
  17. private string m_Name = null;
  18. [SerializeField]
  19. private float m_InstanceAutoReleaseInterval = 60f;
  20. [SerializeField]
  21. private int m_InstanceCapacity = 16;
  22. [SerializeField]
  23. private float m_InstanceExpireTime = 60f;
  24. [SerializeField]
  25. private int m_InstancePriority = 0;
  26. public string Name
  27. {
  28. get
  29. {
  30. return m_Name;
  31. }
  32. }
  33. public float InstanceAutoReleaseInterval
  34. {
  35. get
  36. {
  37. return m_InstanceAutoReleaseInterval;
  38. }
  39. }
  40. public int InstanceCapacity
  41. {
  42. get
  43. {
  44. return m_InstanceCapacity;
  45. }
  46. }
  47. public float InstanceExpireTime
  48. {
  49. get
  50. {
  51. return m_InstanceExpireTime;
  52. }
  53. }
  54. public int InstancePriority
  55. {
  56. get
  57. {
  58. return m_InstancePriority;
  59. }
  60. }
  61. }
  62. }
  63. }