1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Core - Fix node related warnings

This commit is contained in:
Robert 2024-02-23 17:41:11 +01:00
parent 6adcae94b4
commit 313b4a0dea
4 changed files with 8 additions and 5 deletions

View File

@ -63,6 +63,11 @@ public abstract class NodeProvider : PluginFeature
NodeTypeStore.Add(nodeData); NodeTypeStore.Add(nodeData);
} }
/// <summary>
/// Adds a color for lines of the provided type.
/// </summary>
/// <param name="color">The color to add.</param>
/// <typeparam name="T">The type to use the color for.</typeparam>
protected TypeColorRegistration RegisterTypeColor<T>(SKColor color) protected TypeColorRegistration RegisterTypeColor<T>(SKColor color)
{ {
return NodeTypeStore.AddColor(typeof(T), color, this); return NodeTypeStore.AddColor(typeof(T), color, this);

View File

@ -18,7 +18,7 @@ public interface INode : INotifyPropertyChanged, IBreakableModel
/// <summary> /// <summary>
/// Gets /// Gets
/// </summary> /// </summary>
NodeData? NodeData { get; set; } NodeData NodeData { get; set; }
/// <summary> /// <summary>
/// Gets the name of the node /// Gets the name of the node

View File

@ -149,7 +149,5 @@ public class NodeData
/// </summary> /// </summary>
public Type? OutputType { get; } public Type? OutputType { get; }
private readonly Func<INodeScript, NodeEntity?, INode> _create;
#endregion #endregion
} }

View File

@ -28,8 +28,8 @@ public class NodeEntity
} }
public Guid Id { get; set; } public Guid Id { get; set; }
public string Type { get; set; } public string Type { get; set; } = string.Empty;
public string ProviderId { get; set; } public string ProviderId { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;