PartnerItemBase.cs 659 B

1234567891011121314151617181920212223242526
  1. 
  2. using XGame.Database;
  3. namespace FL.Data.Items
  4. {
  5. public class PartnerItemBase : IItemBase
  6. {
  7. private PartnerTable _table;
  8. //private ItemTable _itemTable;
  9. private PartnerAttributes _attributes;
  10. public int TableId => _table.Id;
  11. public EQualityLevel Quality => _table.Quality;
  12. public string Icon => _table.SkillIcon;
  13. public int Level => _attributes.Level;
  14. public void Init(int id)
  15. {
  16. _table = PartnerTableRepo.Get(id);
  17. //_itemTable = ItemTableRepo.Get(id);
  18. _attributes = PartnersData.Instance.GetPartnerAttrByTableId(id);
  19. }
  20. }
  21. }