PartnerAttributes.cs 905 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using XGame.Database;
  3. using XGame.Framework;
  4. namespace FL.Data
  5. {
  6. public class PartnerAttributes : IDisposable
  7. {
  8. public long UID { get; set; }
  9. public int TableId { get; set; }
  10. public int Level { get; set; }
  11. public int RisingStarLv { get; set; } // 升星等级
  12. public int SkillId { get; set; } // 技能id
  13. public int Status { get; set; }// 上阵状态 1为上阵 0 未上阵
  14. public string Name { get; set; }
  15. public float Radius { get; set; }
  16. public int EpigraphId { get; set; } // 镶嵌的铭文id
  17. private Attributes _attr;
  18. public Attributes Attr => _attr ??= ObjectPool.Acquire<Attributes>();
  19. void IDisposable.Dispose()
  20. {
  21. if (_attr != null)
  22. {
  23. ObjectPool.Recycle(_attr);
  24. _attr = null;
  25. }
  26. }
  27. }
  28. }