Пример #1
0
    public static int set_EventOnButtonClick(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController          climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            Action <ClimbTowerFloorItemUIController> action;
            int num = LuaObject.checkDelegate <Action <ClimbTowerFloorItemUIController> >(l, 2, out action);
            if (num == 0)
            {
                climbTowerFloorItemUIController.EventOnButtonClick = action;
            }
            else if (num == 1)
            {
                ClimbTowerFloorItemUIController climbTowerFloorItemUIController2 = climbTowerFloorItemUIController;
                climbTowerFloorItemUIController2.EventOnButtonClick = (Action <ClimbTowerFloorItemUIController>)Delegate.Combine(climbTowerFloorItemUIController2.EventOnButtonClick, action);
            }
            else if (num == 2)
            {
                ClimbTowerFloorItemUIController climbTowerFloorItemUIController3 = climbTowerFloorItemUIController;
                climbTowerFloorItemUIController3.EventOnButtonClick = (Action <ClimbTowerFloorItemUIController>)Delegate.Remove(climbTowerFloorItemUIController3.EventOnButtonClick, action);
            }
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #2
0
    public static int __callBase_BindFieldImpl(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            Type fieldType;
            LuaObject.checkType(l, 2, out fieldType);
            string path;
            LuaObject.checkType(l, 3, out path);
            AutoBindAttribute.InitState initState;
            LuaObject.checkEnum <AutoBindAttribute.InitState>(l, 4, out initState);
            string fieldName;
            LuaObject.checkType(l, 5, out fieldName);
            string ctrlName;
            LuaObject.checkType(l, 6, out ctrlName);
            bool optional;
            LuaObject.checkType(l, 7, out optional);
            UnityEngine.Object o = climbTowerFloorItemUIController.m_luaExportHelper.__callBase_BindFieldImpl(fieldType, path, initState, fieldName, ctrlName, optional);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #3
0
    public static int DestroySpineGraphic(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            climbTowerFloorItemUIController.DestroySpineGraphic();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #4
0
    public static int get_m_spineGraphic(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, climbTowerFloorItemUIController.m_luaExportHelper.m_spineGraphic);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #5
0
    public static int __callBase_Clear(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            climbTowerFloorItemUIController.m_luaExportHelper.__callBase_Clear();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #6
0
    public static int OnBindFiledsCompleted(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            climbTowerFloorItemUIController.m_luaExportHelper.OnBindFiledsCompleted();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #7
0
    public static int CreateSpineGraphic(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            string assetName;
            LuaObject.checkType(l, 2, out assetName);
            climbTowerFloorItemUIController.CreateSpineGraphic(assetName);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #8
0
    public static int set_m_rewardGroupTransform(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            Transform rewardGroupTransform;
            LuaObject.checkType <Transform>(l, 2, out rewardGroupTransform);
            climbTowerFloorItemUIController.m_luaExportHelper.m_rewardGroupTransform = rewardGroupTransform;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #9
0
    public static int set_m_graphicGameObject(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            GameObject graphicGameObject;
            LuaObject.checkType <GameObject>(l, 2, out graphicGameObject);
            climbTowerFloorItemUIController.m_luaExportHelper.m_graphicGameObject = graphicGameObject;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #10
0
    public static int set_m_uiStateController(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            CommonUIStateController         uiStateController;
            LuaObject.checkType <CommonUIStateController>(l, 2, out uiStateController);
            climbTowerFloorItemUIController.m_luaExportHelper.m_uiStateController = uiStateController;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #11
0
    public static int __callBase_SetToggleValueChangedListener(IntPtr l)
    {
        int result;

        try
        {
            int total = LuaDLL.lua_gettop(l);
            if (LuaObject.matchType(l, total, 2, typeof(string[]), typeof(Action <UIControllerBase, bool>)))
            {
                ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
                string[] fieldNames;
                LuaObject.checkArray <string>(l, 2, out fieldNames);
                Action <UIControllerBase, bool> action;
                LuaObject.checkDelegate <Action <UIControllerBase, bool> >(l, 3, out action);
                climbTowerFloorItemUIController.m_luaExportHelper.__callBase_SetToggleValueChangedListener(fieldNames, action);
                LuaObject.pushValue(l, true);
                result = 1;
            }
            else if (LuaObject.matchType(l, total, 2, typeof(string), typeof(Action <UIControllerBase, bool>)))
            {
                ClimbTowerFloorItemUIController climbTowerFloorItemUIController2 = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
                string fieldName;
                LuaObject.checkType(l, 2, out fieldName);
                Action <UIControllerBase, bool> action2;
                LuaObject.checkDelegate <Action <UIControllerBase, bool> >(l, 3, out action2);
                climbTowerFloorItemUIController2.m_luaExportHelper.__callBase_SetToggleValueChangedListener(fieldName, action2);
                LuaObject.pushValue(l, true);
                result = 1;
            }
            else
            {
                LuaObject.pushValue(l, false);
                LuaDLL.lua_pushstring(l, "No matched override function __callBase_SetToggleValueChangedListener to call");
                result = 2;
            }
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #12
0
    public static int __callBase_SetButtonLongPressEndListener(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            string fieldName;
            LuaObject.checkType(l, 2, out fieldName);
            Action <UIControllerBase> action;
            LuaObject.checkDelegate <Action <UIControllerBase> >(l, 3, out action);
            climbTowerFloorItemUIController.m_luaExportHelper.__callBase_SetButtonLongPressEndListener(fieldName, action);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #13
0
    public static int __callBase_OnButtonClick(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            Button button;
            LuaObject.checkType <Button>(l, 2, out button);
            string fieldName;
            LuaObject.checkType(l, 3, out fieldName);
            climbTowerFloorItemUIController.m_luaExportHelper.__callBase_OnButtonClick(button, fieldName);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #14
0
    public static int __callBase_Initlize(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            string ctrlName;
            LuaObject.checkType(l, 2, out ctrlName);
            bool bindNow;
            LuaObject.checkType(l, 3, out bindNow);
            climbTowerFloorItemUIController.m_luaExportHelper.__callBase_Initlize(ctrlName, bindNow);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #15
0
    public static int SetState(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            bool isCleared;
            LuaObject.checkType(l, 2, out isCleared);
            bool isLocked;
            LuaObject.checkType(l, 3, out isLocked);
            Action onEnd;
            LuaObject.checkDelegate <Action>(l, 4, out onEnd);
            climbTowerFloorItemUIController.SetState(isCleared, isLocked, onEnd);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Пример #16
0
    public static int SetTowerFloor(IntPtr l)
    {
        int result;

        try
        {
            ClimbTowerFloorItemUIController climbTowerFloorItemUIController = (ClimbTowerFloorItemUIController)LuaObject.checkSelf(l);
            ConfigDataTowerFloorInfo        floorInfo;
            LuaObject.checkType <ConfigDataTowerFloorInfo>(l, 2, out floorInfo);
            ConfigDataTowerLevelInfo levelInfo;
            LuaObject.checkType <ConfigDataTowerLevelInfo>(l, 3, out levelInfo);
            GameObject rewardGoodsPrefab;
            LuaObject.checkType <GameObject>(l, 4, out rewardGoodsPrefab);
            climbTowerFloorItemUIController.SetTowerFloor(floorInfo, levelInfo, rewardGoodsPrefab);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }