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

            try {
                xc.instance_behaviour.BossBehaviour.RedefineBossInfo __cl_gen_to_be_invoked = (xc.instance_behaviour.BossBehaviour.RedefineBossInfo)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.id);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Ejemplo n.º 2
0
        static int _s_set_killers(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.instance_behaviour.BossBehaviour.RedefineBossInfo __cl_gen_to_be_invoked = (xc.instance_behaviour.BossBehaviour.RedefineBossInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.killers = (System.Collections.Generic.List <xc.instance_behaviour.BossBehaviour.RedefineBossKiller>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <xc.instance_behaviour.BossBehaviour.RedefineBossKiller>));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Ejemplo n.º 3
0
        static int _s_set_refresh_time(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.instance_behaviour.BossBehaviour.RedefineBossInfo __cl_gen_to_be_invoked = (xc.instance_behaviour.BossBehaviour.RedefineBossInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.refresh_time = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Ejemplo n.º 4
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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



            try {
                {
                    Net.PkgBossInfo pkg_info = (Net.PkgBossInfo)translator.GetObject(L, 1, typeof(Net.PkgBossInfo));

                    xc.instance_behaviour.BossBehaviour.RedefineBossInfo __cl_gen_ret = xc.instance_behaviour.BossBehaviour.RedefineBossInfo.GetInfo(pkg_info);
                    translator.Push(L, __cl_gen_ret);



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



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

                    xc.instance_behaviour.BossBehaviour.RedefineBossInfo __cl_gen_ret = xc.instance_behaviour.BossBehaviour.GetPkgBossInfoByActorId(actor_id);
                    translator.Push(L, __cl_gen_ret);



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