| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: Wednesday, May 15, 2019
|
| | | // [ Date ]: Monday, May 20, 2019 |
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | | public readonly int dungeonId;
|
| | | public readonly int lineId;
|
| | | public readonly int npcId;
|
| | | public readonly int crossServer;
|
| | | public readonly int dungeonType;
|
| | | public readonly int point;
|
| | | public readonly int alchemyLevel;
|
| | | public readonly int[] reward;
|
| | |
| | |
|
| | | int.TryParse(tables[5],out npcId);
|
| | |
|
| | | int.TryParse(tables[6],out crossServer); |
| | | int.TryParse(tables[6],out dungeonType); |
| | |
|
| | | int.TryParse(tables[7],out point);
|
| | |
|
| | |
| | | path = AssetVersionUtility.GetAssetFilePath("config/HazyRegion.txt");
|
| | | }
|
| | |
|
| | | configs.Clear();
|
| | | var tempConfig = new HazyRegionConfig();
|
| | | var preParse = tempConfig is IConfigPostProcess;
|
| | |
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3404c0f308cb2174bb7b93e12c3110bd |
| | | timeCreated: 1557892243 |
| | | timeCreated: 1558343195 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dungeonId", _g_get_dungeonId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "lineId", _g_get_lineId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "npcId", _g_get_npcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "crossServer", _g_get_crossServer); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "alchemyLevel", _g_get_alchemyLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "reward", _g_get_reward); |
| | |
| | | |
| | | HazyRegionConfig gen_to_be_invoked = (HazyRegionConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.npcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_crossServer(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | HazyRegionConfig gen_to_be_invoked = (HazyRegionConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.crossServer); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | m_Icon.SetSprite(config.PortraitID);
|
| | | m_Icon.SetNativeSize();
|
| | | m_Icon.material = m_SmoothMask.imageMaterials[0];
|
| | | m_ContainerCrossServer.gameObject.SetActive(!model.InFakeHazyRegion && config.crossServer == 1);
|
| | | m_ContainerCrossServer.gameObject.SetActive(!model.InFakeHazyRegion && config.dungeonType == 2);
|
| | | m_ContainerMustSign.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | |
| | |
|
| | | void SendGotoIncidentDungeon(HazyRegionConfig config)
|
| | | {
|
| | | if (config.crossServer == 1)
|
| | | if (config.dungeonType == 2)
|
| | | {
|
| | | var pak = new CC105_tagCMEnterCrossServer();
|
| | | pak.DataMapID = (uint)config.dungeonId;
|