public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            GoodsType goodsTypeId;
            LuaObject.checkEnum <GoodsType>(l, 2, out goodsTypeId);
            int contentId;
            LuaObject.checkType(l, 3, out contentId);
            int nums;
            LuaObject.checkType(l, 4, out nums);
            ulong instanceId;
            LuaObject.checkType(l, 5, out instanceId);
            HeroFragmentBagItem o = new HeroFragmentBagItem(goodsTypeId, contentId, nums, instanceId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int get_ExchangeMemoryEssence(IntPtr l)
    {
        int result;

        try
        {
            HeroFragmentBagItem heroFragmentBagItem = (HeroFragmentBagItem)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroFragmentBagItem.ExchangeMemoryEssence);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Ejemplo n.º 3
0
 // Token: 0x06013624 RID: 79396 RVA: 0x004F15F8 File Offset: 0x004EF7F8
 public void InitHeroFragmentItem(HeroFragmentBagItem heroFragementBagItem)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitHeroFragmentItemHeroFragmentBagItem_hotfix != null)
     {
         this.m_InitHeroFragmentItemHeroFragmentBagItem_hotfix.call(new object[]
         {
             this,
             heroFragementBagItem
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_heroFragementBagItem    = heroFragementBagItem;
     this.m_iconImg.sprite          = AssetUtility.Instance.GetSprite(UIUtility.GetGoodsIconName(GoodsType.GoodsType_Item, this.m_heroFragementBagItem.ContentId));
     this.m_iconImg.material        = AssetUtility.Instance.GetAsset <Material>(UIUtility.GetGoodsIconMaterialName(GoodsType.GoodsType_Item, this.m_heroFragementBagItem.ContentId));
     this.m_numberText.text         = heroFragementBagItem.Nums.ToString();
     this.m_nameText.text           = heroFragementBagItem.ItemInfo.Name;
 }