地编
This commit is contained in:
@@ -2,12 +2,13 @@ using Cysharp.Threading.Tasks;
|
||||
using HxGame.Data;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing.Imaging;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Imaging;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.Remoting.Metadata.W3cXsd2001;
|
||||
using System.Threading;
|
||||
using UnityEngine;
|
||||
using System.Linq;
|
||||
|
||||
public partial class MapManager : MonoBehaviour
|
||||
{
|
||||
@@ -21,7 +22,7 @@ public partial class MapManager : MonoBehaviour
|
||||
public Transform mapTeleportArea;
|
||||
public Transform mapReliveArea;
|
||||
public Transform mapAudioTrigger;
|
||||
public Dictionary<string, (int maxRow, int maxCol)> allMaps = new Dictionary<string, (int maxRow, int maxCol)>();
|
||||
public Dictionary<string, (int maxRow, int maxCol,int maxNum)> allMaps = new Dictionary<string, (int maxRow, int maxCol, int maxNum)>();
|
||||
|
||||
/// <summary>
|
||||
/// <20><>ǰ<EFBFBD><C7B0>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD>
|
||||
@@ -44,6 +45,11 @@ public partial class MapManager : MonoBehaviour
|
||||
|
||||
public void SaveAtlasToFile()
|
||||
{
|
||||
if (MapManager.Instance.map == null)
|
||||
{
|
||||
UIWindow.Instance.ShowMessage("<22><><EFBFBD>ȴ<C8B4>ͼ");
|
||||
return;
|
||||
}
|
||||
int atlasWidth = _curMapRegions.regionRowNum * (int)_curMapRegions.regionWidth;
|
||||
int atlasHeight = _curMapRegions.regionColNum * (int)_curMapRegions.regionHeight;
|
||||
if (atlasWidth < 8192)
|
||||
@@ -148,7 +154,11 @@ public partial class MapManager : MonoBehaviour
|
||||
}
|
||||
public void LoadMapRegionSprites(int mapId)
|
||||
{
|
||||
if (!allMaps.TryGetValue(mapId.ToString(),out var mapInfo))
|
||||
OldRegionSprites(mapId);
|
||||
}
|
||||
public void OldRegionSprites(int mapId)
|
||||
{
|
||||
if (!allMaps.TryGetValue(mapId.ToString(), out var mapInfo))
|
||||
{
|
||||
UIWindow.Instance.ShowMessage("<22><>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD>ڡ<EFBFBD><DAA1><EFBFBD><EFBFBD><EFBFBD>");
|
||||
return;
|
||||
@@ -186,7 +196,7 @@ public partial class MapManager : MonoBehaviour
|
||||
_curMapRegions.regions[row, col].indexY = col;
|
||||
multithreadLoadTextrue(spPath, sr, _curMapRegions.regions[row, col]);
|
||||
_curMapRegions.regions[row, col].regionName = filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
MapManager.Instance.ReseCamera(jpgscenew * mapColumn, jpgscenew * mapRownum);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user