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


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


            try {
                {
                    uint   dungeon_id   = LuaAPI.xlua_touint(L, 2);
                    string special_type = LuaAPI.lua_tostring(L, 3);
                    float  range        = (float)LuaAPI.lua_tonumber(L, 4);

                    xc.DBSpecialMon.DBSpecialMonItem __cl_gen_ret = __cl_gen_to_be_invoked.GetNearestSpecialMonItem(dungeon_id, special_type, range);
                    translator.Push(L, __cl_gen_ret);



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

            try {
                xc.DBSpecialMon __cl_gen_to_be_invoked = (xc.DBSpecialMon)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.m_DungeonData = (System.Collections.Generic.Dictionary <uint, System.Collections.Generic.List <xc.DBSpecialMon.DBSpecialMonItem> >)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <uint, System.Collections.Generic.List <xc.DBSpecialMon.DBSpecialMonItem> >));
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _g_get_m_DungeonData(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.DBSpecialMon __cl_gen_to_be_invoked = (xc.DBSpecialMon)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.m_DungeonData);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 4
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.DBSpecialMon __cl_gen_ret = new xc.DBSpecialMon(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.DBSpecialMon constructor!"));
        }
Exemplo n.º 5
0
        static int _m_Unload(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    uint dungeon_id = LuaAPI.xlua_touint(L, 2);

                    System.Collections.Generic.List <xc.DBSpecialMon.DBSpecialMonItem> __cl_gen_ret = __cl_gen_to_be_invoked.GetDungeonData(dungeon_id);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    uint   dungeon_id   = LuaAPI.xlua_touint(L, 2);
                    string special_type = LuaAPI.lua_tostring(L, 3);

                    System.Collections.Generic.List <xc.DBSpecialMon.DBSpecialMonItem> __cl_gen_ret = __cl_gen_to_be_invoked.GetDungeonData(dungeon_id, special_type);
                    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.DBSpecialMon.GetDungeonData!"));
        }
Exemplo n.º 7
0
        static int _m_GetSpecialMonLevel(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    uint id = LuaAPI.xlua_touint(L, 2);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.GetSpecialMonLevel(id);
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



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