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

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

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

            try {
                xc.instance_behaviour.BossBehaviour.RedefineBossKiller __cl_gen_to_be_invoked = (xc.instance_behaviour.BossBehaviour.RedefineBossKiller)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.rid = LuaAPI.xlua_touint(L, 2);
            } 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.instance_behaviour.BossBehaviour.RedefineBossKiller __cl_gen_ret = new xc.instance_behaviour.BossBehaviour.RedefineBossKiller();
                    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.RedefineBossKiller constructor!"));
        }