Class ScriptNode
Base class for script graph nodes.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
[Serializable]
public abstract class ScriptNode : IScriptNode, INode
Constructors
ScriptNode()
Declaration
protected ScriptNode()
ScriptNode(ScriptGraphGraph)
Declaration
[Obsolete("Nodes aren't directly dependant on a graph anymore. You can use the parameterless constructor instead. This constructor will be removed with version 2.0.")]
protected ScriptNode(ScriptGraphGraph graph)
Parameters
Type | Name | Description |
---|---|---|
ScriptGraphGraph | graph |
Properties
Graph
Gets the graph this node is part of.
Declaration
[Obsolete("Nodes aren't directly dependant on a graph anymore. This property one will be removed in version 2.0. Check the manual page about custom nodes to see how to access dependencies.")]
protected ScriptGraphGraph Graph { get; }
Property Value
Type | Description |
---|---|
ScriptGraphGraph |
Id
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Get<T>()
Returns dependency of the given type.
Declaration
protected T Get<T>() where T : class
Returns
Type | Description |
---|---|
T | The object. |
Type Parameters
Name | Description |
---|---|
T | The type. |
Initialize()
Declaration
public virtual void Initialize()
LoadDependencies(DependencyContainer)
Declaration
public virtual void LoadDependencies(DependencyContainer container)
Parameters
Type | Name | Description |
---|---|---|
DependencyContainer | container |
RestoreDependencyStates()
Declaration
protected void RestoreDependencyStates()
SaveDependencyStates()
Declaration
protected void SaveDependencyStates()
Events
OnRestoreDependenciesState
Declaration
public event Action<IScriptNode, IDependencyContainer> OnRestoreDependenciesState
Event Type
Type | Description |
---|---|
System.Action<T1, T2><IScriptNode, IDependencyContainer> |
OnSaveDependenciesState
Declaration
public event Action<IScriptNode, IDependencyContainer> OnSaveDependenciesState
Event Type
Type | Description |
---|---|
System.Action<T1, T2><IScriptNode, IDependencyContainer> |