Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.Quantum.ModelNode Class Reference

This class is the default implementation of the IModelNode. More...

Inheritance diagram for SiliconStudio.Quantum.ModelNode:
SiliconStudio.Quantum.IModelNode

Public Member Functions

void AddChild (ModelNode child)
 Add a child to this node. The node must not have been sealed yet. More...
 
void AddCommand (INodeCommand command)
 Add a command to this node. The node must not have been sealed yet. More...
 
void RemoveCommand (INodeCommand command)
 Remove a command from this node. The node must not have been sealed yet. More...
 
void Seal ()
 Seal the node, indicating its construction is finished and that no more children or commands will be added. More...
 
override string ToString ()
 

Properties

string Name The guid must be differ from Guid.Empty." [get, set]
 
Guid Guid [get, set]
 
virtual IContent Content [get, set]
 
virtual IModelNode Parent [get, set]
 
IReadOnlyCollection< IModelNodeChildren [get]
 
IReadOnlyCollection< INodeCommandCommands [get]
 
- Properties inherited from SiliconStudio.Quantum.IModelNode
string Name [get]
 Gets or sets the node name. More...
 
Guid Guid [get]
 Gets or sets the System.Guid. More...
 
IModelNode Parent [get]
 Gets or sets the parent node. More...
 
IReadOnlyCollection< IModelNodeChildren [get]
 Gets the children collection. More...
 
IContent Content [get]
 Gets the content of the IModelNode. More...
 
IReadOnlyCollection< INodeCommandCommands [get]
 Gets the command collection. More...
 

Detailed Description

This class is the default implementation of the IModelNode.

Definition at line 14 of file ModelNode.cs.

Member Function Documentation

void SiliconStudio.Quantum.ModelNode.AddChild ( ModelNode  child)

Add a child to this node. The node must not have been sealed yet.

Parameters
childThe child node to add.

Definition at line 59 of file ModelNode.cs.

References SiliconStudio.Quantum.ModelNode.Parent.

void SiliconStudio.Quantum.ModelNode.AddCommand ( INodeCommand  command)

Add a command to this node. The node must not have been sealed yet.

Parameters
commandThe node command to add.

Definition at line 78 of file ModelNode.cs.

void SiliconStudio.Quantum.ModelNode.RemoveCommand ( INodeCommand  command)

Remove a command from this node. The node must not have been sealed yet.

Parameters
commandThe node command to remove.

Definition at line 90 of file ModelNode.cs.

void SiliconStudio.Quantum.ModelNode.Seal ( )

Seal the node, indicating its construction is finished and that no more children or commands will be added.

Definition at line 101 of file ModelNode.cs.

override string SiliconStudio.Quantum.ModelNode.ToString ( )

Definition at line 107 of file ModelNode.cs.

Property Documentation

IReadOnlyCollection<IModelNode> SiliconStudio.Quantum.ModelNode.Children
get
IReadOnlyCollection<INodeCommand> SiliconStudio.Quantum.ModelNode.Commands
get

Definition at line 53 of file ModelNode.cs.

virtual IContent SiliconStudio.Quantum.ModelNode.Content
getset
Guid SiliconStudio.Quantum.ModelNode.Guid
getset

Definition at line 41 of file ModelNode.cs.

string SiliconStudio.Quantum.ModelNode.Name The guid must be differ from Guid.Empty."
getset

Definition at line 38 of file ModelNode.cs.

virtual IModelNode SiliconStudio.Quantum.ModelNode.Parent
getset

Definition at line 47 of file ModelNode.cs.

Referenced by SiliconStudio.Quantum.ModelNode.AddChild().


The documentation for this class was generated from the following file: