C# Class AoMBrgEditor.PssgNode

Show file Open project: Ryder25/Age-of-Mythology Class Usage Examples

Public Properties

Property Type Description
ParentNode PssgNode
TreeNode System.Windows.Forms.TreeNode
attributes PssgAttribute>.Dictionary
data byte[]
id int
isDataNode bool
subNodes AoMBrgEditor.PssgNode[]

Public Methods

Method Description
AddAttributeInfo ( int id ) : void
FindNodes ( string nodeName, string attributeName = null, string attributeValue = null ) : List
HasAttribute ( int attributeID ) : bool

Determines whether the current node has an attribute with the specified id.

HasAttribute ( string attributeName ) : bool
PssgNode ( PssgBinaryReader reader, PssgFile file, PssgNode node, bool useDataNodeCheck ) : System
PssgNode ( PssgNode nodeToCopy ) : System
PssgNode ( int id, PssgFile file, PssgNode node, bool isDataNode ) : System
RemoveAttributeInfo ( int id ) : void
RemoveNodeInfo ( int id ) : void
ToString ( ) : string
UpdateSize ( ) : void
Write ( PssgBinaryWriter writer ) : void
this ( int attributeID ) : PssgAttribute

Gets or sets the node attribute associated with the specified attribute id.

this ( string attributeName ) : PssgAttribute

Method Details

AddAttributeInfo() public method

public AddAttributeInfo ( int id ) : void
id int
return void

FindNodes() public method

public FindNodes ( string nodeName, string attributeName = null, string attributeValue = null ) : List
nodeName string
attributeName string
attributeValue string
return List

HasAttribute() public method

Determines whether the current node has an attribute with the specified id.
public HasAttribute ( int attributeID ) : bool
attributeID int The id of the attribute to find.
return bool

HasAttribute() public method

public HasAttribute ( string attributeName ) : bool
attributeName string
return bool

PssgNode() public method

public PssgNode ( PssgBinaryReader reader, PssgFile file, PssgNode node, bool useDataNodeCheck ) : System
reader PssgBinaryReader
file PssgFile
node PssgNode
useDataNodeCheck bool
return System

PssgNode() public method

public PssgNode ( PssgNode nodeToCopy ) : System
nodeToCopy PssgNode
return System

PssgNode() public method

public PssgNode ( int id, PssgFile file, PssgNode node, bool isDataNode ) : System
id int
file PssgFile
node PssgNode
isDataNode bool
return System

RemoveAttributeInfo() public method

public RemoveAttributeInfo ( int id ) : void
id int
return void

RemoveNodeInfo() public method

public RemoveNodeInfo ( int id ) : void
id int
return void

ToString() public method

public ToString ( ) : string
return string

UpdateSize() public method

public UpdateSize ( ) : void
return void

Write() public method

public Write ( PssgBinaryWriter writer ) : void
writer PssgBinaryWriter
return void

this() public method

Gets or sets the node attribute associated with the specified attribute id.
public this ( int attributeID ) : PssgAttribute
attributeID int The id of the attribute to get or set.
return PssgAttribute

this() public method

public this ( string attributeName ) : PssgAttribute
attributeName string
return PssgAttribute

Property Details

ParentNode public property

public PssgNode,AoMBrgEditor ParentNode
return PssgNode

TreeNode public property

public TreeNode,System.Windows.Forms TreeNode
return System.Windows.Forms.TreeNode

attributes public property

public Dictionary attributes
return PssgAttribute>.Dictionary

data public property

public byte[] data
return byte[]

id public property

public int id
return int

isDataNode public property

public bool isDataNode
return bool

subNodes public property

public PssgNode[],AoMBrgEditor subNodes
return AoMBrgEditor.PssgNode[]