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

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


            xc.CustomDataMgr __cl_gen_to_be_invoked = (xc.CustomDataMgr)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));
            }
        }
Exemplo n.º 3
0
        static int _m_RemoveCustomData(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 4 && translator.Assignable <xc.CustomDataType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
                {
                    xc.CustomDataType dataType; translator.Get(L, 2, out dataType);
                    int  value      = LuaAPI.xlua_tointeger(L, 3);
                    bool bPutServer = LuaAPI.lua_toboolean(L, 4);

                    __cl_gen_to_be_invoked.RemoveCustomData(dataType, value, bPutServer);



                    return(0);
                }
                if (__gen_param_count == 3 && translator.Assignable <xc.CustomDataType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    xc.CustomDataType dataType; translator.Get(L, 2, out dataType);
                    int value = LuaAPI.xlua_tointeger(L, 3);

                    __cl_gen_to_be_invoked.RemoveCustomData(dataType, value);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to xc.CustomDataMgr.RemoveCustomData!"));
        }
Exemplo n.º 4
0
        static int _m_GetCustomData(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    xc.CustomDataType type; translator.Get(L, 2, out type);

                    System.Collections.Generic.List <int> __cl_gen_ret = __cl_gen_to_be_invoked.GetCustomData(type);
                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    xc.CustomDataType type; translator.Get(L, 2, out type);
                    int value = LuaAPI.xlua_tointeger(L, 3);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsExistCustomData(type, value);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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