示例#1
0
        static int _s_set_MemberCount(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.SocietyManagerEx __cl_gen_to_be_invoked = (xc.SocietyManagerEx)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.MemberCount = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
示例#2
0
        static int _g_get_Level(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.SocietyManagerEx __cl_gen_to_be_invoked = (xc.SocietyManagerEx)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.Level);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
示例#3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.SocietyManagerEx __cl_gen_ret = new xc.SocietyManagerEx();
                    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.SocietyManagerEx constructor!"));
        }
示例#4
0
        static int _m_Reset(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.Reset(  );



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


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


            try {
                {
                    System.Collections.Generic.List <xc.SocietyManagerEx.MemberInfo> __cl_gen_ret = __cl_gen_to_be_invoked.GetNotInAOIRangeMembers(  );
                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsAllInAOIRange(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


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


            try {
                {
                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetMemberCount(  );
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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


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


            try {
                {
                    uint   uuid = LuaAPI.xlua_touint(L, 2);
                    string name = LuaAPI.lua_tostring(L, 3);

                    __cl_gen_to_be_invoked.AddMember(uuid, name);



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