Exemplo n.º 1
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            GoodsType goodsType;
            LuaObject.checkEnum <GoodsType>(l, 3, out goodsType);
            int itemId;
            LuaObject.checkType(l, 4, out itemId);
            int count;
            LuaObject.checkType(l, 5, out count);
            HeroFavorabilityExpAddNetTask o = new HeroFavorabilityExpAddNetTask(heroId, goodsType, itemId, count);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Exemplo n.º 2
0
    public static int get_Rewards(IntPtr l)
    {
        int result;

        try
        {
            HeroFavorabilityExpAddNetTask heroFavorabilityExpAddNetTask = (HeroFavorabilityExpAddNetTask)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, heroFavorabilityExpAddNetTask.Rewards);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }