Data model nodes - Only allow picking data model entries of types supported by nodes

Data models - Fixed path registration not registering two paths pointing to the same property twice (fixes data model-reliant node scripts that stop updating)
This commit is contained in:
Robert committed 2022-09-08 23:01:55 +02:00
1 parent 3836fae37a
commit 94b91bfc31
9 files changed
+116 -32

No files matched your search

+13
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Security.Cryptography;
using System.Text;
@@ -37,6 +38,12 @@ internal class NodeService : INodeService
#region Methods
/// <inheritdoc />
public List<Type> GetRegisteredTypes()
{
return NodeTypeStore.GetColors().Select(c => c.Type).Distinct().ToList();
}
/// <inheritdoc />
public TypeColorRegistration GetTypeColorRegistration(Type type)
{
@@ -132,6 +139,12 @@ public interface INodeService : IArtemisService
/// </summary>
IEnumerable<NodeData> AvailableNodes { get; }
/// <summary>
/// Gets all currently available node pin types.
/// </summary>
/// <returns>A <see cref="List{T}"/> of <see cref="Type"/> containing the currently available node pin types.</returns>
List<Type> GetRegisteredTypes();
/// <summary>
/// Gets the best matching registration for the provided type
/// </summary>