Пример #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    emo.LuaBehaviour gen_ret = new emo.LuaBehaviour();
                    translator.Push(L, 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 emo.LuaBehaviour constructor!"));
        }
Пример #2
0
        static int _m_Unregister_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    emo.LuaBehaviour _lua = (emo.LuaBehaviour)translator.GetObject(L, 1, typeof(emo.LuaBehaviour));

                    emo.LuaManager.Unregister(_lua);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #3
0
        static int _m_Clear(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                emo.LuaBehaviour gen_to_be_invoked = (emo.LuaBehaviour)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.Clear(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #4
0
        static int _m_SetScrollOnValueChanged(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                emo.LuaBehaviour gen_to_be_invoked = (emo.LuaBehaviour)translator.FastGetCSObj(L, 1);



                {
                    string           _path = LuaAPI.lua_tostring(L, 2);
                    XLua.LuaFunction _func = (XLua.LuaFunction)translator.GetObject(L, 3, typeof(XLua.LuaFunction));

                    gen_to_be_invoked.SetScrollOnValueChanged(_path, _func);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #5
0
        static int _m_SetSlider(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                emo.LuaBehaviour gen_to_be_invoked = (emo.LuaBehaviour)translator.FastGetCSObj(L, 1);



                {
                    float  _value = (float)LuaAPI.lua_tonumber(L, 2);
                    string _path  = LuaAPI.lua_tostring(L, 3);

                    gen_to_be_invoked.SetSlider(_value, _path);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #6
0
        static int _m_GetText(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                emo.LuaBehaviour gen_to_be_invoked = (emo.LuaBehaviour)translator.FastGetCSObj(L, 1);



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

                    string gen_ret = gen_to_be_invoked.GetText(_path);
                    LuaAPI.lua_pushstring(L, gen_ret);



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