| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(GAMgr); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 30, 7, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 31, 8, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AddNeedDestroyPrefab", _m_AddNeedDestroyPrefab); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveNeedDestroyPrefab", _m_RemoveNeedDestroyPrefab); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReleaseAll", _m_ReleaseAll); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBySID", _m_GetBySID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetByCID", _m_GetByCID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCloserCollectNpc", _m_GetCloserCollectNpc); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCloserFightNpc", _m_GetCloserFightNpc); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCloserNPC", _m_GetCloserNPC); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGroupList", _m_GetGroupList); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFightNpcRequest", _e_OnFightNpcRequest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnFightNpcRelease", _e_OnFightNpcRelease); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "s_NpcID2BundleName", _g_get_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reAdjustPosList", _g_get_reAdjustPosList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "s_NpcID2BundleName", _g_get_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "s_NpcID2Assetname", _g_get_s_NpcID2Assetname); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "needDestroyPrefabList", _g_get_needDestroyPrefabList); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "needDieList", _g_get_needDieList); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "otherPlayerAtkHeroDict", _g_get_otherPlayerAtkHeroDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "_removeIdList", _g_get__removeIdList); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "s_NpcID2BundleName", _s_set_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "reAdjustPosList", _s_set_reAdjustPosList); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "s_NpcID2BundleName", _s_set_s_NpcID2BundleName); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "s_NpcID2Assetname", _s_set_s_NpcID2Assetname); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "needDestroyPrefabList", _s_set_needDestroyPrefabList); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "needDieList", _s_set_needDieList); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetCloserCollectNpc(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | GAMgr gen_to_be_invoked = (GAMgr)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | UnityEngine.Vector3 _center;translator.Get(L, 2, out _center); |
| | | |
| | | GActor gen_ret = gen_to_be_invoked.GetCloserCollectNpc( _center ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetCloserFightNpc(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_reAdjustPosList(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GAMgr gen_to_be_invoked = (GAMgr)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.reAdjustPosList); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_s_NpcID2BundleName(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_reAdjustPosList(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | GAMgr gen_to_be_invoked = (GAMgr)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.reAdjustPosList = (System.Collections.Generic.List<GActor>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<GActor>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_s_NpcID2BundleName(RealStatePtr L) |
| | | { |
| | | try { |