Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkCompiler / ParsedHierarchy / ExternalDeclaration.cs
@Rackday Rackday on 29 Oct 777 bytes Major Update
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Ink.Parsed
  4. {
  5. public class ExternalDeclaration : Parsed.Object, INamedContent
  6. {
  7. public string name
  8. {
  9. get { return identifier?.name; }
  10. }
  11. public Identifier identifier { get; set; }
  12. public List<string> argumentNames { get; set; }
  13. public ExternalDeclaration (Identifier identifier, List<string> argumentNames)
  14. {
  15. this.identifier = identifier;
  16. this.argumentNames = argumentNames;
  17. }
  18. public override Ink.Runtime.Object GenerateRuntimeObject ()
  19. {
  20. story.AddExternal (this);
  21. // No runtime code exists for an external, only metadata
  22. return null;
  23. }
  24. }
  25. }