Files
HX_MapEditor/Assets/Scripts/Utils/PathUtil.cs

35 lines
944 B
C#
Raw Permalink Normal View History

2025-06-14 13:46:24 +08:00
using System.IO;
using UnityEngine;
public class PathUtil
{
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>Ҽ<EFBFBD><D2BC><EFBFBD>texture ·<><C2B7>
public static string GetTexture(int mapId, string name, string suffix)
{
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/Texture/{name}.{suffix}";
}
2025-06-15 20:14:45 +08:00
public static string GetMapTexure(int mapId, string name, string suffix)
{
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/Texture/{name}.{suffix}";
}
2025-07-25 15:36:10 +08:00
public static string GetBigMapPath(int mapId)
{
return $"{Application.dataPath}/GameAssets/Maps/{mapId}";
}
2025-06-15 20:14:45 +08:00
2025-06-14 13:46:24 +08:00
#region XML
public static string GetXmlPath(int mapId, string fileName)
{
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/XML/{fileName}.xml";
}
2025-06-19 01:31:00 +08:00
public static string GetObsPath(int mapId, string fileName)
{
return $"{Application.dataPath}/GameAssets/Maps/{mapId}/XML/{fileName}.bytes";
}
2025-06-14 13:46:24 +08:00
#endregion
}