Example #1
0
    public static int set_MonthCardInvalidEvent(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            Action <int>            value;
            int num = LuaObject.checkDelegate <Action <int> >(l, 2, out value);
            if (num != 0)
            {
                if (num == 1)
                {
                    resourceComponentCommon.MonthCardInvalidEvent += value;
                }
                else if (num == 2)
                {
                    resourceComponentCommon.MonthCardInvalidEvent -= value;
                }
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #2
0
    public static int PostDeSerialize(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            resourceComponentCommon.PostDeSerialize();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #3
0
    public static int get_m_basicInfo(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, resourceComponentCommon.m_luaExportHelper.m_basicInfo);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #4
0
    public static int get_Owner(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, resourceComponentCommon.Owner);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #5
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon o = new ResourceComponentCommon();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #6
0
    public static int EffectValidMonthCard(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            resourceComponentCommon.m_luaExportHelper.EffectValidMonthCard();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #7
0
    public static int GetName(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            string name = resourceComponentCommon.GetName();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, name);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #8
0
    public static int GetAllValidMonthCards(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            List <MonthCard>        allValidMonthCards      = resourceComponentCommon.GetAllValidMonthCards();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, allValidMonthCards);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #9
0
    public static int OnMonthCardInvalid(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            int monthCardId;
            LuaObject.checkType(l, 2, out monthCardId);
            resourceComponentCommon.m_luaExportHelper.OnMonthCardInvalid(monthCardId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #10
0
    public static int set_Owner(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            IComponentOwner         owner;
            LuaObject.checkType <IComponentOwner>(l, 2, out owner);
            resourceComponentCommon.Owner = owner;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #11
0
    public static int Tick(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            uint deltaMillisecond;
            LuaObject.checkType(l, 2, out deltaMillisecond);
            resourceComponentCommon.Tick(deltaMillisecond);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #12
0
    public static int set_m_configDataLoader(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            IConfigDataLoader       configDataLoader;
            LuaObject.checkType <IConfigDataLoader>(l, 2, out configDataLoader);
            resourceComponentCommon.m_luaExportHelper.m_configDataLoader = configDataLoader;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #13
0
    public static int set_m_bag(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            BagComponentCommon      bag;
            LuaObject.checkType <BagComponentCommon>(l, 2, out bag);
            resourceComponentCommon.m_luaExportHelper.m_bag = bag;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #14
0
    public static int set_m_resourceDS(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            DataSectionResource     resourceDS;
            LuaObject.checkType <DataSectionResource>(l, 2, out resourceDS);
            resourceComponentCommon.m_luaExportHelper.m_resourceDS = resourceDS;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #15
0
    public static int __clearDele_MonthCardInvalidEvent(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            int obj;
            LuaObject.checkType(l, 2, out obj);
            resourceComponentCommon.m_luaExportHelper.__clearDele_MonthCardInvalidEvent(obj);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #16
0
    public static int AddEquipmentId(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            int equipmentId;
            LuaObject.checkType(l, 2, out equipmentId);
            resourceComponentCommon.m_luaExportHelper.AddEquipmentId(equipmentId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #17
0
    public static int OnCreateBagItemEventCallBack(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            BagItemBase             bagItem;
            LuaObject.checkType <BagItemBase>(l, 2, out bagItem);
            resourceComponentCommon.m_luaExportHelper.OnCreateBagItemEventCallBack(bagItem);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #18
0
    public static int IsMonthCardVaild(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            int cardId;
            LuaObject.checkType(l, 2, out cardId);
            bool b = resourceComponentCommon.IsMonthCardVaild(cardId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #19
0
    public static int HasHeadFrameId(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            int headFrameId;
            LuaObject.checkType(l, 2, out headFrameId);
            bool b = resourceComponentCommon.HasHeadFrameId(headFrameId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #20
0
    public static int HasOwn(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            GoodsType goodtypeId;
            LuaObject.checkEnum <GoodsType>(l, 2, out goodtypeId);
            int id;
            LuaObject.checkType(l, 3, out id);
            bool b = resourceComponentCommon.HasOwn(goodtypeId, id);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #21
0
    public static int AddMonthCard(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            int monthCardId;
            LuaObject.checkType(l, 2, out monthCardId);
            DateTime expiredTime;
            LuaObject.checkValueType <DateTime>(l, 3, out expiredTime);
            string goodsId;
            LuaObject.checkType(l, 4, out goodsId);
            resourceComponentCommon.AddMonthCard(monthCardId, expiredTime, goodsId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Example #22
0
    public static int AddSoldierSkin(IntPtr l)
    {
        int result;

        try
        {
            ResourceComponentCommon resourceComponentCommon = (ResourceComponentCommon)LuaObject.checkSelf(l);
            int soldierSkinId;
            LuaObject.checkType(l, 2, out soldierSkinId);
            GameFunctionType causeId;
            LuaObject.checkEnum <GameFunctionType>(l, 3, out causeId);
            string location;
            LuaObject.checkType(l, 4, out location);
            resourceComponentCommon.AddSoldierSkin(soldierSkinId, causeId, location);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }