//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace G { using F; using F.Item; using System.Collections; using System.Collections.Generic; /// /// Generated from: item.xlsx /// partial class ItemProp { /// /// /// public bool isMoney { get { return type == Item.Type.Money; } } /// /// /// public bool isProp { get { return Item.Type.Prop == type; } } /// /// /// public bool isWeapon { get { return type == Item.Type.Weapon; } } /// /// /// public bool isEquipment { get { return type == Item.Type.Equipment; } } /// /// /// public bool isWeaponOrEquipment { get { return type == Item.Type.Weapon || type == Item.Type.Equipment; } } /// /// /// public bool isGem { get { return type == Item.Type.Gem; } } /// /// 红颜道具 /// public bool isBeautyProp { get { return type == Item.Type.BeautyProp; } } public string gradeText { get { int result = level / 10 + (level % 10) != 0 ? 1 : 0; return GlobalUtils.NumberToChinese(result) + "品"; } } public string text { get { return KLocalization.GetLocalString(textId); } } public string[] icon { get { var iconItem = ItemProxy.Instance.GetStaticItem(this.iconId); return iconItem != null ? iconItem.spriteInfo : null; } } public ItemInfo sellPriceInfo; public ItemInfo buyPriceInfo; public override void Init() { sellPriceInfo = ItemInfo.Convert(sellPrice); buyPriceInfo = ItemInfo.Convert(buyPrice); } } }