Nodes - Implemented saving/loading

Nodes - Added data model node
This commit is contained in:
Robert committed 2021-08-10 16:52:24 +02:00
1 parent 61d7f1e1fb
commit afc4bee7ac
29 files changed
+730 -157

No files matched your search

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using Artemis.Storage.Entities.Profile.Conditions;
using Artemis.Storage.Entities.Profile.Nodes;
namespace Artemis.Storage.Entities.Profile.Abstract
{
@@ -15,5 +16,7 @@ namespace Artemis.Storage.Entities.Profile.Abstract
public DataModelConditionGroupEntity DisplayCondition { get; set; }
public TimelineEntity Timeline { get; set; }
public NodeScriptEntity NodeScript { get; set; }
}
}
@@ -0,0 +1,14 @@
namespace Artemis.Storage.Entities.Profile.Nodes
{
public class NodeConnectionEntity
{
public string SourceType { get; set; }
public int SourceNode { get; set; }
public int TargetNode { get; set; }
public int SourcePinCollectionId { get; set; }
public int SourcePinId { get; set; }
public string TargetType { get; set; }
public int TargetPinCollectionId { get; set; }
public int TargetPinId { get; set; }
}
}
@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
namespace Artemis.Storage.Entities.Profile.Nodes
{
public class NodeEntity
{
public NodeEntity()
{
PinCollections = new List<NodePinCollectionEntity>();
}
public int Id { get; set; }
public string Type { get; set; }
public Guid PluginId { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public bool IsExitNode { get; set; }
public double X { get; set; }
public double Y { get; set; }
public object Storage { get; set; }
public List<NodePinCollectionEntity> PinCollections { get; set; }
}
}
@@ -0,0 +1,10 @@
namespace Artemis.Storage.Entities.Profile.Nodes
{
public class NodePinCollectionEntity
{
public string Name { get; set; }
public string Type { get; set; }
public int Direction { set; get; }
public int Amount { get; set; }
}
}
@@ -0,0 +1,19 @@
using System.Collections.Generic;
namespace Artemis.Storage.Entities.Profile.Nodes
{
public class NodeScriptEntity
{
public NodeScriptEntity()
{
Nodes = new List<NodeEntity>();
Connections = new List<NodeConnectionEntity>();
}
public string Name { get; set; }
public string Description { get; set; }
public List<NodeEntity> Nodes { get; set; }
public List<NodeConnectionEntity> Connections { get; set; }
}
}