Beispiel #1
0
        static int _s_set_data(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBSuitRefine __cl_gen_to_be_invoked = (xc.DBSuitRefine)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.data = (System.Collections.Generic.Dictionary <string, xc.DBSuitRefine.DBSuitRefineItem>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <string, xc.DBSuitRefine.DBSuitRefineItem>));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Beispiel #2
0
        static int _g_get_data(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

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

            try {
                if (LuaAPI.lua_gettop(L) == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    string strName = LuaAPI.lua_tostring(L, 2);
                    string strPath = LuaAPI.lua_tostring(L, 3);

                    xc.DBSuitRefine __cl_gen_ret = new xc.DBSuitRefine(strName, strPath);
                    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.DBSuitRefine constructor!"));
        }
Beispiel #4
0
        static int _m_Unload(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.Unload(  );



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


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


            try {
                {
                    string id = LuaAPI.lua_tostring(L, 2);

                    xc.DBSuitRefine.DBSuitRefineItem __cl_gen_ret = __cl_gen_to_be_invoked.GetData(id);
                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    uint pos  = LuaAPI.xlua_touint(L, 2);
                    uint step = LuaAPI.xlua_touint(L, 3);

                    System.Collections.Generic.List <xc.DBSuitRefine.DBSuitRefineItem> __cl_gen_ret = __cl_gen_to_be_invoked.GetRefineListByPos(pos, step);
                    translator.Push(L, __cl_gen_ret);



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