12345678910111213141516171819202122232425262728 |
- using System;
- using XGame.Database;
- using XGame.Framework;
- namespace FL.Data
- {
- public class PartnerAttributes : IDisposable
- {
- public long UID { get; set; }
- public int TableId { get; set; }
- public int Level { get; set; }
- public int RisingStarLv { get; set; } // 升星等级
- public int SkillId { get; set; } // 技能id
- public string Name { get; set; }
- public float Radius { get; set; }
- public long EpigraphId { get; set; } // 镶嵌的铭文id
- private Attributes _attr;
- public Attributes Attr => _attr ??= ObjectPool.Acquire<Attributes>();
- void IDisposable.Dispose()
- {
- if (_attr != null)
- {
- ObjectPool.Recycle(_attr);
- _attr = null;
- }
- }
- }
- }
|