Aetheria/Assets/Ink/compiler/InkParser/InkParser_AuthorWarning.cs
Reinier Vens 82c8041765 Ink Integration
Initial integration of Ink scripting - simply runs the first story it finds.
2021-04-19 04:35:46 +01:00

28 lines
545 B
C#

using Ink.Parsed;
namespace Ink
{
public partial class InkParser
{
protected AuthorWarning AuthorWarning()
{
Whitespace ();
var identifier = Parse (IdentifierWithMetadata);
if (identifier == null || identifier.name != "TODO")
return null;
Whitespace ();
ParseString (":");
Whitespace ();
var message = ParseUntilCharactersFromString ("\n\r");
return new AuthorWarning (message);
}
}
}