Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }
Пример #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);
    }