You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
673 B
26 lines
673 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using TNode.Models;
|
|
|
|
namespace TNode.Runtime{
|
|
public abstract class RuntimeNode{
|
|
public object NodeData;
|
|
public List<NodeLink> NodeLinks;
|
|
public void ProcessThisNode(){
|
|
|
|
}
|
|
|
|
}
|
|
public class RuntimeNode<T>:RuntimeNode where T:NodeData{
|
|
public new T NodeData{ get; set; }
|
|
|
|
//Links related to runtime node,for fast access.only remember out links
|
|
public List<NodeLink> NodeLinks;
|
|
|
|
public void OnCreate(){
|
|
RuntimeCache.RuntimeCache.Instance.RegisterRuntimeNode<T>();
|
|
}
|
|
}
|
|
} |