Start typed state rebuild
This commit is contained in:
parent
ab2c294464
commit
89e91ff4d7
16 changed files with 476 additions and 0 deletions
16
Aetheria.State/AetheriaStatePaths.cs
Normal file
16
Aetheria.State/AetheriaStatePaths.cs
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
using System.IO;
|
||||
|
||||
namespace Aetheria.State;
|
||||
|
||||
public static class AetheriaStatePaths
|
||||
{
|
||||
public const string DefaultStateFileName = "aetheria-world.cc";
|
||||
|
||||
public static string ResolveDefaultStatePath(string? projectRoot = null)
|
||||
{
|
||||
var root = string.IsNullOrWhiteSpace(projectRoot)
|
||||
? Directory.GetCurrentDirectory()
|
||||
: projectRoot!;
|
||||
return Path.Combine(root, "GameData", DefaultStateFileName);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue