Files
Mementos/Unity/Alternate Genre Jam/Assets/Ink/InkLibs/InkCompiler/ParsedHierarchy/ExternalDeclaration.cs
2021-06-30 21:39:19 +10:00

31 lines
777 B
C#

using System;
using System.Collections.Generic;
namespace Ink.Parsed
{
public class ExternalDeclaration : Parsed.Object, INamedContent
{
public string name
{
get { return identifier?.name; }
}
public Identifier identifier { get; set; }
public List<string> argumentNames { get; set; }
public ExternalDeclaration (Identifier identifier, List<string> argumentNames)
{
this.identifier = identifier;
this.argumentNames = argumentNames;
}
public override Ink.Runtime.Object GenerateRuntimeObject ()
{
story.AddExternal (this);
// No runtime code exists for an external, only metadata
return null;
}
}
}