Aetheria/Assets/Plugins/Ink/compiler/FileHandler.cs
Reinier Vens b1bd89a687 Mini Galaxy Gen
Added flags to game manager and player settings to check tutorial status
Created alternate galaxy generation process for tutorial
2021-04-22 02:53:06 +01:00

24 lines
652 B
C#

using System.IO;
namespace Ink
{
public interface IFileHandler
{
string ResolveInkFilename (string includeName);
string LoadInkFileContents (string fullFilename);
}
public class DefaultFileHandler : Ink.IFileHandler {
public string ResolveInkFilename (string includeName)
{
var workingDir = Directory.GetCurrentDirectory ();
var fullRootInkPath = Path.Combine (workingDir, includeName);
return fullRootInkPath;
}
public string LoadInkFileContents (string fullFilename)
{
return File.ReadAllText (fullFilename);
}
}
}