mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
switch from Unity version control to git
This commit is contained in:
30
Assets/Module/TopologyGraphModel.cs
Normal file
30
Assets/Module/TopologyGraphModel.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
// Root graph container
|
||||
[Serializable]
|
||||
public class TopologyGraph
|
||||
{
|
||||
public List<ModuleData> Modules = new List<ModuleData>();
|
||||
public List<Connection> Connections = new List<Connection>();
|
||||
}
|
||||
|
||||
// Individual module
|
||||
[Serializable]
|
||||
public class ModuleData
|
||||
{
|
||||
public int Id;
|
||||
public string Type;
|
||||
public float Degree;
|
||||
}
|
||||
|
||||
// Connection between modules
|
||||
[Serializable]
|
||||
public class Connection
|
||||
{
|
||||
public int FromModuleId;
|
||||
public string FromSocket;
|
||||
public int ToModuleId;
|
||||
public string ToSocket;
|
||||
public Orientation Orientation;
|
||||
}
|
||||
Reference in New Issue
Block a user