Space Engineers
Public Member Functions | List of all members
VRage.Groups.MyGroupsBase< TNode > Class Template Referenceabstract
Inheritance diagram for VRage.Groups.MyGroupsBase< TNode >:
VRage.Groups.MyGroups< TNode, TGroupData >

Public Member Functions

abstract void AddNode (TNode nodeToAdd)
 Adds node, asserts when node already exists More...
 
abstract void RemoveNode (TNode nodeToRemove)
 Removes node, asserts when node is not here or node has some existing links More...
 
abstract void CreateLink (long linkId, TNode parentNode, TNode childNode)
 Creates link between parent and child. Parent is owner of constraint. LinkId must be unique only for parent, for grid it can be packed position of block which created constraint. More...
 
abstract bool BreakLink (long linkId, TNode parentNode, TNode childNode=null)
 Breaks link between parent and child, you can set child to null to find it by linkId. Returns true when link was removed, returns false when link was not found. More...
 
abstract bool LinkExists (long linkId, TNode parentNode, TNode childNode=null)
 Returns true if the given link between parent and child exists, you can set child to null to find it by linkId. More...
 
abstract List< TNode > GetGroupNodes (TNode nodeInGroup)
 Allocates!! Returns list of nodes datas in group More...
 
abstract void GetGroupNodes (TNode nodeInGroup, List< TNode > result)
 

Detailed Description

Type Constraints
TNode :class 

Definition at line 9 of file MyGroupsBase.cs.

Member Function Documentation

abstract void VRage.Groups.MyGroupsBase< TNode >.AddNode ( TNode  nodeToAdd)
pure virtual

Adds node, asserts when node already exists

Implemented in VRage.Groups.MyGroups< TNode, TGroupData >.

abstract bool VRage.Groups.MyGroupsBase< TNode >.BreakLink ( long  linkId,
TNode  parentNode,
TNode  childNode = null 
)
pure virtual

Breaks link between parent and child, you can set child to null to find it by linkId. Returns true when link was removed, returns false when link was not found.

Implemented in VRage.Groups.MyGroups< TNode, TGroupData >.

abstract void VRage.Groups.MyGroupsBase< TNode >.CreateLink ( long  linkId,
TNode  parentNode,
TNode  childNode 
)
pure virtual

Creates link between parent and child. Parent is owner of constraint. LinkId must be unique only for parent, for grid it can be packed position of block which created constraint.

Implemented in VRage.Groups.MyGroups< TNode, TGroupData >.

abstract List<TNode> VRage.Groups.MyGroupsBase< TNode >.GetGroupNodes ( TNode  nodeInGroup)
pure virtual

Allocates!! Returns list of nodes datas in group

Parameters
nodeInGroup
Returns

Implemented in VRage.Groups.MyGroups< TNode, TGroupData >.

abstract void VRage.Groups.MyGroupsBase< TNode >.GetGroupNodes ( TNode  nodeInGroup,
List< TNode >  result 
)
pure virtual
abstract bool VRage.Groups.MyGroupsBase< TNode >.LinkExists ( long  linkId,
TNode  parentNode,
TNode  childNode = null 
)
pure virtual

Returns true if the given link between parent and child exists, you can set child to null to find it by linkId.

Implemented in VRage.Groups.MyGroups< TNode, TGroupData >.

abstract void VRage.Groups.MyGroupsBase< TNode >.RemoveNode ( TNode  nodeToRemove)
pure virtual

Removes node, asserts when node is not here or node has some existing links

Implemented in VRage.Groups.MyGroups< TNode, TGroupData >.


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