Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkCompiler / Plugins / Plugin.cs
@Rackday Rackday on 29 Oct 804 bytes Major Update
  1. using System;
  2. namespace Ink
  3. {
  4. public interface IPlugin
  5. {
  6. // Hooks: if in doubt use PostExport, since the parsedStory is in a more finalised state.
  7. void PreParse(ref string storyContent);
  8. // Hook for immediately after the story has been parsed into its basic Parsed hierarchy.
  9. // Could be useful for modifying the story before it's exported.
  10. void PostParse(ref Parsed.Story parsedStory);
  11. // Hook for after parsed story has been converted into its runtime equivalent. Note that
  12. // during this process the parsed story will have changed structure too, to take into
  13. // account analysis of the structure of Weave, for example.
  14. void PostExport(Parsed.Story parsedStory, ref Runtime.Story runtimeStory);
  15. }
  16. }