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

            try {
                xc.DBTaskGuide.TaskGuideInfo __cl_gen_to_be_invoked = (xc.DBTaskGuide.TaskGuideInfo)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.TaskId);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Example #2
0
        static int _s_set_Param(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBTaskGuide.TaskGuideInfo __cl_gen_to_be_invoked = (xc.DBTaskGuide.TaskGuideInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.Param = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Example #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.DBTaskGuide.TaskGuideInfo __cl_gen_ret = new xc.DBTaskGuide.TaskGuideInfo();
                    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.DBTaskGuide.TaskGuideInfo constructor!"));
        }
Example #4
0
        static int _m_GetTaskGuideInfo(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.DBTaskGuide __cl_gen_to_be_invoked = (xc.DBTaskGuide)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    uint taskId        = LuaAPI.xlua_touint(L, 2);
                    uint taskState     = LuaAPI.xlua_touint(L, 3);
                    uint taskGuideType = LuaAPI.xlua_touint(L, 4);

                    xc.DBTaskGuide.TaskGuideInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetTaskGuideInfo(taskId, taskState, taskGuideType);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    uint taskId    = LuaAPI.xlua_touint(L, 2);
                    uint taskState = LuaAPI.xlua_touint(L, 3);

                    xc.DBTaskGuide.TaskGuideInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetTaskGuideInfo(taskId, taskState);
                    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.DBTaskGuide.GetTaskGuideInfo!"));
        }
Example #5
0
        static int _m_GetTaskBarGuideInfo(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.DBTaskGuide __cl_gen_to_be_invoked = (xc.DBTaskGuide)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint taskId    = LuaAPI.xlua_touint(L, 2);
                    uint taskState = LuaAPI.xlua_touint(L, 3);

                    xc.DBTaskGuide.TaskGuideInfo __cl_gen_ret = __cl_gen_to_be_invoked.GetTaskBarGuideInfo(taskId, taskState);
                    translator.Push(L, __cl_gen_ret);



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