Exemplo n.º 1
0
        static int _s_set_ConstTitle(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.NpcDefine __cl_gen_to_be_invoked = (xc.NpcDefine)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.ConstTitle = LuaAPI.lua_tostring(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 2
0
        static int _g_get_VoiceIds(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.NpcDefine __cl_gen_to_be_invoked = (xc.NpcDefine)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.VoiceIds);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 3
0
        static int _s_set_Function(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.NpcDefine           __cl_gen_to_be_invoked = (xc.NpcDefine)translator.FastGetCSObj(L, 1);
                xc.NpcDefine.EFunction __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.Function = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.NpcDefine __cl_gen_ret = new xc.NpcDefine();
                    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.NpcDefine constructor!"));
        }
Exemplo n.º 5
0
        static int _m_RunNpcFunction_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    xc.NpcDefine npcDefine = (xc.NpcDefine)translator.GetObject(L, 1, typeof(xc.NpcDefine));

                    xc.NpcHelper.RunNpcFunction(npcDefine);



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



            try {
                {
                    uint npcId = LuaAPI.xlua_touint(L, 1);

                    xc.NpcDefine __cl_gen_ret = xc.NpcHelper.MakeNpcDefine(npcId);
                    translator.Push(L, __cl_gen_ret);



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