1234567891011121314151617181920212223242526272829 |
- 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 int Status { get; set; }// 上阵状态 1为上阵 0 未上阵
- public string Name { get; set; }
- public float Radius { get; set; }
- public int 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;
- }
- }
- }
- }
|