mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
* Scripting - Simplified view model structure * Scripting - Removed Layer and LayerProperty scripts
24 lines
780 B
C#
24 lines
780 B
C#
namespace Artemis.Core.ScriptingProviders
|
|
{
|
|
/// <summary>
|
|
/// Represents a view model containing a script editor
|
|
/// </summary>
|
|
public interface IScriptEditorViewModel
|
|
{
|
|
/// <summary>
|
|
/// Gets the script type this view model was created for
|
|
/// </summary>
|
|
ScriptType ScriptType { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the script this editor is editing
|
|
/// </summary>
|
|
Script? Script { get; }
|
|
|
|
/// <summary>
|
|
/// Called whenever the view model must display a different script
|
|
/// </summary>
|
|
/// <param name="script">The script to display or <see langword="null" /> if no script is to be displayed</param>
|
|
void ChangeScript(Script? script);
|
|
}
|
|
} |