19 lines
493 B
C#
19 lines
493 B
C#
// See https://aka.ms/new-console-template for more information
|
|
|
|
using System.Text;
|
|
using InkBlot;
|
|
|
|
var parser = new InkBlotParser();
|
|
parser.Parse(new PreMadeFileReader(new Dictionary<string, string>
|
|
{
|
|
{ "main.ink", "Hel-\\lo!" }
|
|
}), "main.ink");
|
|
|
|
|
|
internal class PreMadeFileReader(Dictionary<string, string> filesToContents) : IFileReader
|
|
{
|
|
public Stream GetContents(string filename)
|
|
{
|
|
return new MemoryStream(Encoding.UTF8.GetBytes(filesToContents[filename]));
|
|
}
|
|
} |