Esempio n. 1
0
        static int _m_DoTaskGoal(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if(__gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string goal = LuaAPI.lua_tostring(L, 2);

                    __cl_gen_to_be_invoked.DoTaskGoal( goal );

                    return 0;
                }
                if(__gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string goal = LuaAPI.lua_tostring(L, 2);
                    int arg = LuaAPI.xlua_tointeger(L, 3);

                    __cl_gen_to_be_invoked.DoTaskGoal( goal, arg );

                    return 0;
                }

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

            return LuaAPI.luaL_error(L, "invalid arguments to xc.TaskNet.DoTaskGoal!");
        }
Esempio n. 2
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            try {
                if(LuaAPI.lua_gettop(L) == 1)
                {

                    xc.TaskNet __cl_gen_ret = new xc.TaskNet();
                    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.TaskNet constructor!");
        }
Esempio n. 3
0
        static int _m_RegisterMessages(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {

                {

                    __cl_gen_to_be_invoked.RegisterMessages(  );

                    return 0;
                }

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

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

            try {

                {
                    uint id = LuaAPI.xlua_touint(L, 2);

                    __cl_gen_to_be_invoked.SubmitTask( id );

                    return 0;
                }

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