Beispiel #1
0
        static int _m_DestroyBehaviour(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.ugui.UILuaBehaviour __cl_gen_to_be_invoked = (xc.ui.ugui.UILuaBehaviour)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.DestroyBehaviour(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #2
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 3 && translator.Assignable <xc.ui.ugui.UIBaseWindow>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    xc.ui.ugui.UIBaseWindow win = (xc.ui.ugui.UIBaseWindow)translator.GetObject(L, 2, typeof(xc.ui.ugui.UIBaseWindow));
                    string lua_script           = LuaAPI.lua_tostring(L, 3);

                    xc.ui.ugui.UILuaBehaviour __cl_gen_ret = new xc.ui.ugui.UILuaBehaviour(win, lua_script);
                    translator.Push(L, __cl_gen_ret);
                    return(1);
                }
            }
            catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to xc.ui.ugui.UILuaBehaviour constructor!"));
        }
Beispiel #3
0
        static int _m_ResetBehaviour(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.ugui.UILuaBehaviour __cl_gen_to_be_invoked = (xc.ui.ugui.UILuaBehaviour)translator.FastGetCSObj(L, 1);


            try {
                {
                    object[] param = translator.GetParams <object>(L, 2);

                    __cl_gen_to_be_invoked.ResetBehaviour(param);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Beispiel #4
0
        static int _m_CallLuaFunc(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.ui.ugui.UILuaBehaviour __cl_gen_to_be_invoked = (xc.ui.ugui.UILuaBehaviour)translator.FastGetCSObj(L, 1);


            try {
                {
                    string func_name = LuaAPI.lua_tostring(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.CallLuaFunc(func_name);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }