local MiniMap_Controller = {} local private = {} MiniMap_Controller.MiniMapPointType = { RedNormal = 1, RedElite = 2, RedBoss = 3, BlueNormal = 4, BlueElite = 5, DoorOpen = 6, DoorClose = 7, TreasureBox = 8, QuestionMark = 9, Flag = 10, Convey = 11, GreenNormal = 12, DragonArteryBoss = 13, DragonArteryTotem = 14, DragonBossArtifact = 15, DragonBossGeneral = 16, CountryNightBoss = 17, ChangAnRedRushCar = 18, ChangAnBlueRushCar = 19, ChangAnRedTower = 20, ChangAnBlueTower = 21, TowerFoundation = 22, ChangAnRedBoss = 24, ChangAnBlueBoss = 25, ChangAnRedBornPoint = 26, ChangAnBlueBornPoint = 27, ChangAnRedStatue = 28, ChangAnBlueStatue = 29, ChangAnKingRedStatue = 30, ChangAnKingBlueStatue = 31, ChangAnWhiteTower = 32, ChangAnWhiteRushCar = 33, ChangAnDoorClose = 34, ChangAnRedVehicle = 35, ChangAnBlueVehicle = 36, ChangAnWhiteVehicle = 37, ChangAnYellowRushCar = 38, PurpleBoss = 39, } private.MiniMapPointIcon = { [MiniMap_Controller.MiniMapPointType.RedNormal] = ConstAssetPathConfig.Path12, [MiniMap_Controller.MiniMapPointType.RedElite] = ConstAssetPathConfig.AssetPath63, [MiniMap_Controller.MiniMapPointType.RedBoss] = ConstAssetPathConfig.AssetPath64, [MiniMap_Controller.MiniMapPointType.BlueNormal] = ConstAssetPathConfig.AssetPath65, [MiniMap_Controller.MiniMapPointType.BlueElite] = ConstAssetPathConfig.AssetPath66, [MiniMap_Controller.MiniMapPointType.DoorOpen] = ConstAssetPathConfig.AssetPath67, [MiniMap_Controller.MiniMapPointType.DoorClose] = ConstAssetPathConfig.AssetPath68, [MiniMap_Controller.MiniMapPointType.TreasureBox] = ConstAssetPathConfig.AssetPath69, [MiniMap_Controller.MiniMapPointType.QuestionMark] = ConstAssetPathConfig.AssetPath70, [MiniMap_Controller.MiniMapPointType.Flag] = ConstAssetPathConfig.AssetPath71, [MiniMap_Controller.MiniMapPointType.Convey] = ConstAssetPathConfig.AssetPath72, [MiniMap_Controller.MiniMapPointType.GreenNormal] = ConstAssetPathConfig.AssetPath73, [MiniMap_Controller.MiniMapPointType.DragonArteryBoss] = ConstAssetPathConfig.AssetPath74, [MiniMap_Controller.MiniMapPointType.DragonArteryTotem] = ConstAssetPathConfig.AssetPath75, [MiniMap_Controller.MiniMapPointType.DragonBossArtifact] = ConstAssetPathConfig.AssetPath76, [MiniMap_Controller.MiniMapPointType.DragonBossGeneral] = ConstAssetPathConfig.AssetPath77, [MiniMap_Controller.MiniMapPointType.CountryNightBoss] = ConstAssetPathConfig.AssetPath78, [MiniMap_Controller.MiniMapPointType.ChangAnRedRushCar] = ConstAssetPathConfig.AssetPath79, [MiniMap_Controller.MiniMapPointType.ChangAnBlueRushCar] = ConstAssetPathConfig.AssetPath80, [MiniMap_Controller.MiniMapPointType.ChangAnRedTower] = ConstAssetPathConfig.AssetPath81, [MiniMap_Controller.MiniMapPointType.ChangAnBlueTower] = ConstAssetPathConfig.AssetPath82, [MiniMap_Controller.MiniMapPointType.TowerFoundation] = ConstAssetPathConfig.AssetPath83, [MiniMap_Controller.MiniMapPointType.ChangAnRedBoss] = ConstAssetPathConfig.AssetPath84, [MiniMap_Controller.MiniMapPointType.ChangAnBlueBoss] = ConstAssetPathConfig.AssetPath85, [MiniMap_Controller.MiniMapPointType.ChangAnRedBornPoint] = ConstAssetPathConfig.AssetPath86, [MiniMap_Controller.MiniMapPointType.ChangAnBlueBornPoint] = ConstAssetPathConfig.AssetPath87, [MiniMap_Controller.MiniMapPointType.ChangAnRedStatue] = ConstAssetPathConfig.AssetPath88, [MiniMap_Controller.MiniMapPointType.ChangAnBlueStatue] = ConstAssetPathConfig.AssetPath89, [MiniMap_Controller.MiniMapPointType.ChangAnKingRedStatue] = ConstAssetPathConfig.AssetPath88, [MiniMap_Controller.MiniMapPointType.ChangAnKingBlueStatue] = ConstAssetPathConfig.AssetPath89, [MiniMap_Controller.MiniMapPointType.ChangAnWhiteTower] = ConstAssetPathConfig.AssetPath90, [MiniMap_Controller.MiniMapPointType.ChangAnWhiteRushCar] = ConstAssetPathConfig.AssetPath91, [MiniMap_Controller.MiniMapPointType.ChangAnDoorClose] = ConstAssetPathConfig.AssetPath92, [MiniMap_Controller.MiniMapPointType.ChangAnRedVehicle] = ConstAssetPathConfig.AssetPath93, [MiniMap_Controller.MiniMapPointType.ChangAnBlueVehicle] = ConstAssetPathConfig.AssetPath94, [MiniMap_Controller.MiniMapPointType.ChangAnWhiteVehicle] = ConstAssetPathConfig.AssetPath95, [MiniMap_Controller.MiniMapPointType.ChangAnYellowRushCar] = ConstAssetPathConfig.AssetPath96, [MiniMap_Controller.MiniMapPointType.PurpleBoss] = ConstAssetPathConfig.AssetPath97, } private.MiniMapEffectType = { Zoom = 0, --缩放 EffectMain = 1, --主要光圈 EffectMinor = 2, --次要光圈 ChangAnCommand = 3, --长安指挥光圈 ChangAnBlueRushCar = 4, --长安蓝色冲车光圈 ChangAnRedRushCar = 5, --长安红色冲车光圈 ChangAnTowerAttackSelf = 6, --长安塔攻击自己光圈 } private.StressEffect = { [private.MiniMapEffectType.EffectMain] = ConstAssetPathConfig.AssetPath98, [private.MiniMapEffectType.EffectMinor] = ConstAssetPathConfig.AssetPath98, [private.MiniMapEffectType.ChangAnCommand] = ConstAssetPathConfig.AssetPath99, [private.MiniMapEffectType.ChangAnBlueRushCar] = ConstAssetPathConfig.AssetPath100, [private.MiniMapEffectType.ChangAnRedRushCar] = ConstAssetPathConfig.AssetPath101, [private.MiniMapEffectType.ChangAnTowerAttackSelf] = ConstAssetPathConfig.AssetPath102, } function MiniMap_Controller.GetMapPointPath(type) return private.MiniMapPointIcon[type] end function MiniMap_Controller.GetStressEffect(type) return private.StressEffect[type] end function MiniMap_Controller.GoToMap(mapID) if mapID == MDL.GuildParty.GetGuildPartyMapId() then if not CTL.GuildParty.CanGotoGuildPartyScene(true) then return false; end end --判断资源是否已下载好 if CTL.HotFix.HasLevelPackageDownload(nil, mapID) == false then return end if MDL.Team.IsFollowing() then --组队跟随中不可操作 CTL.Tips.AddTipsMsg(Const_IDS["IDS_Team_FollowCanNotDoThis"]) return false end --跨服与本服互相传送前先检测是否符合条件 if not CTL.CrossServer.CheckConveyCondition(mapID) then return false end --打断寻路 NotSyncBattleSetter.StopAutoFightPathInTown() if not CTL.Country.CheckConveyCountryMap(mapID) then CTL.Level.StartConveyProgress(mapID) --new 读条再传送 end return true end function MiniMap_Controller.IsPointTypeBlue(type) return type == MiniMap_Controller.MiniMapPointType.BlueNormal or type == MiniMap_Controller.MiniMapPointType.BlueElite end --层级位于最上边的小地图点 function MiniMap_Controller.IsMapPointLastSibling(type) if BattleDataGetter.IsTownLevel() == false and MiniMap_Controller.IsPointTypeBlue(type) then return true end if BattleDataGetter.CheckCurLevelType(LuaConst.LevelType.DragonArteryWaitingArea) or BattleDataGetter.CheckCurLevelType(LuaConst.LevelType.DragonArtery) then if type == MiniMap_Controller.MiniMapPointType.GreenNormal then return true end end return false end --层级位于最下边的小地图点 function MiniMap_Controller.IsMapPointFirstSibling(type) if BattleDataGetter.IsTownLevel() == false then if not MiniMap_Controller.IsPointTypeBlue(type) then return true end end return false end --叛军突袭图标显示 0小兵 1精英 function MiniMap_Controller.GetRebelStrikeType(type) if type == 0 then return MiniMap_Controller.MiniMapPointType.RedNormal elseif type == 1 then return MiniMap_Controller.MiniMapPointType.RedBoss end end function MiniMap_Controller.IsShowChangeLine() local levelData = LevelManager.GetCurInfoData() local levelFeatureType = DataSheetManager.LevelFeatureData:GetDataByLevelFeatureID(levelData.LevelType).LevelFeatureType return levelFeatureType == LuaConst.LevelFeatureType.Town or levelFeatureType == LuaConst.LevelFeatureType.SyncWarZoneDynamicTown end function MiniMap_Controller.IsShowMiniMap() local levelInfoData = LevelManager.GetCurInfoData(); if levelInfoData.SceneMapID <= 0 then return false end local success, miniMapCfg = DataSheetManager.MiniMapData:TryGetDataByID(levelInfoData.SceneMapID) return success end return MiniMap_Controller