mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-29 02:24:28 +11:00
20 lines
739 B
C#
20 lines
739 B
C#
using System;
|
|
|
|
namespace Ink
|
|
{
|
|
public interface IPlugin
|
|
{
|
|
// Hooks: if in doubt use PostExport, since the parsedStory is in a more finalised state.
|
|
|
|
// Hook for immediately after the story has been parsed into its basic Parsed hierarchy.
|
|
// Could be useful for modifying the story before it's exported.
|
|
void PostParse(Parsed.Story parsedStory);
|
|
|
|
// Hook for after parsed story has been converted into its runtime equivalent. Note that
|
|
// during this process the parsed story will have changed structure too, to take into
|
|
// account analysis of the structure of Weave, for example.
|
|
void PostExport(Parsed.Story parsedStory, Runtime.Story runtimeStory);
|
|
}
|
|
}
|
|
|