| | |
| | | |
| | | public static bool IsSceneAssetValid(int mapId, int lineId)
|
| | | {
|
| | | var dataMapId = 0;
|
| | | var mapConfig = Config.Instance.Get<MapConfig>(mapId);
|
| | | if (mapConfig == null)
|
| | | {
|
| | | return false;
|
| | | if (AssetSource.sceneFromEditor || mapId < 100) |
| | | { |
| | | return true; |
| | | }
|
| | |
|
| | | if (mapConfig.MapFBType != 0)
|
| | | {
|
| | | var model = ModelCenter.Instance.GetModel<DungeonModel>();
|
| | | dataMapId = model.GetDataMapIdByMapId(mapId);
|
| | | }
|
| | | else
|
| | | {
|
| | | lineId = 0;
|
| | | dataMapId = mapId;
|
| | | var dataMapId = MapUtility.GetDataMapId(mapId);
|
| | | lineId = MapUtility.GetLineId(mapId, lineId);
|
| | | var mapResConfig = MapResourcesConfig.GetConfig(dataMapId, lineId);
|
| | | if (mapResConfig == null) |
| | | { |
| | | return false; |
| | | }
|
| | |
|
| | | var mapResConfig = DTCA127_tagMCStartChangeMap.GetMapResourcesConfig(dataMapId, lineId);
|
| | | if (!IsAssetValid(StringUtility.Contact("maps/", mapResConfig.MapResources.ToLower()))) |
| | | {
|
| | | return false; |