1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 13:28:33 +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);
}
/// <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)
{
return NodeTypeStore.AddColor(typeof(T), color, this);

View File

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

View File

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

View File

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