-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPreviewable.cs
More file actions
16 lines (16 loc) · 784 Bytes
/
Copy pathIPreviewable.cs
File metadata and controls
16 lines (16 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace Screenplay
{
/// <summary>
/// A node that can be executed in the editor as a preview
/// </summary>
public interface IPreviewable : IScreenplayNode
{
/// <summary>
/// Called when a preview containing this node is created, implementer use the <paramref name="previewer"/> provided
/// to enqueue their custom preview logic and rollback mechanism to deal with any side effects that preview incurs on the scene.
/// </summary>
/// <param name="previewer">The container to run previews and ensure scene changes can be rolled back</param>
/// <param name="fastForwarded">Whether the node should be played or fast forwarded</param>
void SetupPreview(IPreviewer previewer, bool fastForwarded);
}
}