using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using Artemis.Core; namespace Artemis.VisualScripting.Editor.Controls { public class VisualScriptEditor : Control { #region Dependency Properties public static readonly DependencyProperty ScriptProperty = DependencyProperty.Register( "Script", typeof(INodeScript), typeof(VisualScriptEditor), new PropertyMetadata(default(INodeScript))); public INodeScript Script { get => (INodeScript)GetValue(ScriptProperty); set => SetValue(ScriptProperty, value); } public static readonly DependencyProperty AvailableNodesProperty = DependencyProperty.Register( "AvailableNodes", typeof(IEnumerable), typeof(VisualScriptEditor), new PropertyMetadata(default(IEnumerable))); public IEnumerable AvailableNodes { get => (IEnumerable)GetValue(AvailableNodesProperty); set => SetValue(AvailableNodesProperty, value); } #endregion } }