26 lines
574 B
C#
26 lines
574 B
C#
using BS.Shared.Exceptions;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace BeWo.Service.Extensions
|
|
{
|
|
public static class ServiceEnumExtension
|
|
{
|
|
public static string GetConfigPath(this SpecialConfig specialConfig)
|
|
{
|
|
var root = AppDomain.CurrentDomain.BaseDirectory;
|
|
|
|
switch (specialConfig)
|
|
{
|
|
case SpecialConfig.AiConfig: return Path.Combine(root, "Config/ai.config.json");
|
|
}
|
|
|
|
throw BeWoNotImplementedException.CreateFromEnum(specialConfig);
|
|
}
|
|
}
|
|
}
|