using XFEExtension.NetCore.AutoPath;
namespace SpaceEngineersBlueprintEditor.Utilities;
///
/// 太空工程师路径
///
public partial class SpaceEngineersPath
{
///
/// 用户游戏数据根目录
///
[AutoPath]
private static readonly string userGameDataRoot = $@"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}\SpaceEngineers";
///
/// 蓝图文件路径
///
[AutoPath]
private static readonly string blueprintsRoot = $@"{UserGameDataRoot}\Blueprints";
///
/// 本地蓝图文件路径
///
[AutoPath]
private static readonly string localBlueprints = $@"{BlueprintsRoot}\local";
///
/// 云端蓝图文件路径
///
[AutoPath]
private static readonly string cloudBlueprints = $@"{BlueprintsRoot}\cloud";
///
/// 工坊蓝图文件路径
///
[AutoPath]
private static readonly string workshopBlueprints = $@"{BlueprintsRoot}\workshop\temp\Steam";
///
/// 太空工程师游戏内容路径
///
public static string SpaceEngineerContentPath => $@"{SystemProfile.GameRootPath}\Content";
///
/// 太空工程师游戏Bin目录路径
///
public static string SpaceEngineerBinPath => $@"{SystemProfile.GameRootPath}\Bin64";
///
/// 太空工程师动态链接库路径集
///
public static string[] SpaceEngineerDynamicLibrary => Directory.Exists(SpaceEngineerBinPath)
? Directory.GetFiles(SpaceEngineerBinPath, "*.dll", SearchOption.TopDirectoryOnly)
: [];
}