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

                DCET.Model.IResponse gen_to_be_invoked = (DCET.Model.IResponse)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushstring(L, gen_to_be_invoked.Message);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Example #2
0
        static int _s_set_Error(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                DCET.Model.IResponse gen_to_be_invoked = (DCET.Model.IResponse)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Error = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
Example #3
0
        static int _m_Reply(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.Session gen_to_be_invoked = (DCET.Model.Session)translator.FastGetCSObj(L, 1);



                {
                    DCET.Model.IResponse _message = (DCET.Model.IResponse)translator.GetObject(L, 2, typeof(DCET.Model.IResponse));

                    gen_to_be_invoked.Reply(_message);



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