コード例 #1
0
        static int _g_get_InstanceId(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.InstanceManager.InstancePollInfo __cl_gen_to_be_invoked = (xc.InstanceManager.InstancePollInfo)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.InstanceId);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
コード例 #2
0
        static int _s_set_VoteList(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.InstanceManager.InstancePollInfo __cl_gen_to_be_invoked = (xc.InstanceManager.InstancePollInfo)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.VoteList = (System.Collections.Generic.Dictionary <uint, uint>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <uint, uint>));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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


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


            try {
                {
                    uint uuid = LuaAPI.xlua_touint(L, 2);
                    uint vote = LuaAPI.xlua_touint(L, 3);

                    __cl_gen_to_be_invoked.ChangeVote(uuid, vote);



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