Пример #1
0
        static int _m_InitLogic(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Lua.LuaService __cl_gen_to_be_invoked = (JW.Lua.LuaService)translator.FastGetCSObj(L, 1);


                int __gen_param_count = LuaAPI.lua_gettop(L);

                if (__gen_param_count == 2 && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2))
                {
                    bool init = LuaAPI.lua_toboolean(L, 2);

                    __cl_gen_to_be_invoked.InitLogic(init);



                    return(0);
                }
                if (__gen_param_count == 1)
                {
                    __cl_gen_to_be_invoked.InitLogic(  );



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

            return(LuaAPI.luaL_error(L, "invalid arguments to JW.Lua.LuaService.InitLogic!"));
        }
Пример #2
0
        static int _g_get_LuaFramework(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                JW.Lua.LuaService __cl_gen_to_be_invoked = (JW.Lua.LuaService)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.LuaFramework);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Пример #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    JW.Lua.LuaService __cl_gen_ret = new JW.Lua.LuaService();
                    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 JW.Lua.LuaService constructor!"));
        }
Пример #4
0
        static int _m_LogicUpdate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                JW.Lua.LuaService __cl_gen_to_be_invoked = (JW.Lua.LuaService)translator.FastGetCSObj(L, 1);



                {
                    __cl_gen_to_be_invoked.LogicUpdate(  );



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


                JW.Lua.LuaService __cl_gen_to_be_invoked = (JW.Lua.LuaService)translator.FastGetCSObj(L, 1);



                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.Initialize(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


                JW.Lua.LuaService __cl_gen_to_be_invoked = (JW.Lua.LuaService)translator.FastGetCSObj(L, 1);



                {
                    XLua.LuaEnv __cl_gen_ret = __cl_gen_to_be_invoked.GetLuaEnv(  );
                    translator.Push(L, __cl_gen_ret);



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


                JW.Lua.LuaService __cl_gen_to_be_invoked = (JW.Lua.LuaService)translator.FastGetCSObj(L, 1);



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

                    __cl_gen_to_be_invoked.UnLoadLuaZip(fileName);



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


                JW.Lua.LuaService __cl_gen_to_be_invoked = (JW.Lua.LuaService)translator.FastGetCSObj(L, 1);



                {
                    System.Action <int> callBack = translator.GetDelegate <System.Action <int> >(L, 2);

                    __cl_gen_to_be_invoked.LoadMainLua(callBack);



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