C# Class AoMBrgEditor.PssgFile

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

Public Properties

Property Type Description
attributeInfo PssgAttributeInfo[]
magic string
nodeInfo PssgNodeInfo[]
rootNode PssgNode

Public Methods

Method Description
AddAttribute ( PssgNode parentNode, int attributeID, object data ) : PssgAttribute
AddAttributeInfo ( string name, PssgNodeInfo nodeInfo ) : PssgAttributeInfo
AddNode ( PssgNode parentNode, int nodeID ) : PssgNode
AddNodeInfo ( string name ) : PssgNodeInfo
CreateSpecificTreeViewNode ( TreeView tv, string nodeName ) : void
CreateSpecificTreeViewNode ( TreeView tv, string nodeName, string attributeName, string attributeValue ) : void
CreateTreeViewNode ( PssgNode node ) : TreeNode
FindNodes ( string name, string attributeName = null, string attributeValue = null ) : List
GetAttributeInfo ( string attributeInfoName ) : PssgAttributeInfo[]
GetNodeInfo ( string nodeInfoName ) : PssgNodeInfo[]
PssgFile ( ) : System
PssgFile ( System fileStream ) : System
RemoveAttribute ( PssgNode node, string attributeName ) : void
RemoveAttributeInfo ( int id ) : void
RemoveNode ( PssgNode node ) : void
RemoveNodeInfo ( int id ) : void
Write ( System fileStream ) : void
WriteAsModel ( System fileStream ) : void

Method Details

AddAttribute() public method

public AddAttribute ( PssgNode parentNode, int attributeID, object data ) : PssgAttribute
parentNode PssgNode
attributeID int
data object
return PssgAttribute

AddAttributeInfo() public method

public AddAttributeInfo ( string name, PssgNodeInfo nodeInfo ) : PssgAttributeInfo
name string
nodeInfo PssgNodeInfo
return PssgAttributeInfo

AddNode() public method

public AddNode ( PssgNode parentNode, int nodeID ) : PssgNode
parentNode PssgNode
nodeID int
return PssgNode

AddNodeInfo() public method

public AddNodeInfo ( string name ) : PssgNodeInfo
name string
return PssgNodeInfo

CreateSpecificTreeViewNode() public method

public CreateSpecificTreeViewNode ( TreeView tv, string nodeName ) : void
tv System.Windows.Forms.TreeView
nodeName string
return void

CreateSpecificTreeViewNode() public method

public CreateSpecificTreeViewNode ( TreeView tv, string nodeName, string attributeName, string attributeValue ) : void
tv System.Windows.Forms.TreeView
nodeName string
attributeName string
attributeValue string
return void

CreateTreeViewNode() public method

public CreateTreeViewNode ( PssgNode node ) : TreeNode
node PssgNode
return TreeNode

FindNodes() public method

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

GetAttributeInfo() public method

public GetAttributeInfo ( string attributeInfoName ) : PssgAttributeInfo[]
attributeInfoName string
return PssgAttributeInfo[]

GetNodeInfo() public method

public GetNodeInfo ( string nodeInfoName ) : PssgNodeInfo[]
nodeInfoName string
return PssgNodeInfo[]

PssgFile() public method

public PssgFile ( ) : System
return System

PssgFile() public method

public PssgFile ( System fileStream ) : System
fileStream System
return System

RemoveAttribute() public method

public RemoveAttribute ( PssgNode node, string attributeName ) : void
node PssgNode
attributeName string
return void

RemoveAttributeInfo() public method

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

RemoveNode() public method

public RemoveNode ( PssgNode node ) : void
node PssgNode
return void

RemoveNodeInfo() public method

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

Write() public method

public Write ( System fileStream ) : void
fileStream System
return void

WriteAsModel() public method

public WriteAsModel ( System fileStream ) : void
fileStream System
return void

Property Details

attributeInfo public property

public PssgAttributeInfo[] attributeInfo
return PssgAttributeInfo[]

magic public property

public string magic
return string

nodeInfo public property

public PssgNodeInfo[] nodeInfo
return PssgNodeInfo[]

rootNode public property

public PssgNode rootNode
return PssgNode