PartnerAttributes.cs 828 B

12345678910111213141516171819202122232425262728
  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 string Name { get; set; }
  14. public float Radius { get; set; }
  15. public long EpigraphId { get; set; } // 镶嵌的铭文id
  16. private Attributes _attr;
  17. public Attributes Attr => _attr ??= ObjectPool.Acquire<Attributes>();
  18. void IDisposable.Dispose()
  19. {
  20. if (_attr != null)
  21. {
  22. ObjectPool.Recycle(_attr);
  23. _attr = null;
  24. }
  25. }
  26. }
  27. }