C# Class SSTUTools.ModelSwitchGroup

Datei anzeigen Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
defaultModel string
modelNodes SSTUTools.ModelNode[]
name string
owner SSTUModelSwitch
parentGroup string
parentNode string

Private Properties

Property Type Description
add void
addChild void
disableGroup void
enable void
enable void
enableDefaultModel ModelSwitchData
enableGroup void
findNode ModelNode
get ModelSwitchData
get ModelSwitchData
getModelNames string[]
getModelRootTransform UnityEngine.Transform
getPersistentData string
initializeModels void
initializeRoot void
isAvailable bool
isChildAtNodeEnabled bool
load void
preInitialize void
setupNodesForModel void

Public Methods

Method Description
ModelSwitchGroup ( ConfigNode node, SSTUModelSwitch module ) : System

Private Methods

Method Description
add ( ModelSwitchData data ) : void
addChild ( ModelSwitchGroup group ) : void
disableGroup ( ) : void

Disable this model group; recurse through children and disable them, delete all models, delete all model nodes

enable ( ModelSwitchData data ) : void
enable ( string modelName ) : void
enableDefaultModel ( ) : ModelSwitchData

Update the enabled/disabled status for all models, setting the default model to enabled==true Does not create the actual models, merely updates their status; models are created with the initializeModels() call

enableGroup ( ) : void

Enable this model group; enable on default model, links up models to nodes, upwards-recurse enable children groups

findNode ( string name ) : ModelNode
get ( int index ) : ModelSwitchData
get ( string name ) : ModelSwitchData
getModelNames ( ) : string[]

Return an array containing the names of the models for this group; to be used to populate GUI selection data

getModelRootTransform ( ) : Transform
getPersistentData ( ) : string
initializeModels ( ) : void

build currently enabled model, ensure no others are present

initializeRoot ( ) : void

To be called on all model groups. If it is a root model group it will initialize itself and any children as needed. Build model root GO, initialize model for current selection, and initialize any children that need it.

isAvailable ( ) : bool

Return true if this group should be available for GUI selection for editing; depends on if parent group is null or enabled

isChildAtNodeEnabled ( string nodeName ) : bool
load ( string data ) : void
preInitialize ( ) : void

initialize the default values for model-data; this occurs prior to load()

setupNodesForModel ( ModelSwitchData data ) : void

enable/disable nodes depending on if they are enabled/disabled for the currently enabled model

Method Details

ModelSwitchGroup() public method

public ModelSwitchGroup ( ConfigNode node, SSTUModelSwitch module ) : System
node System.ConfigNode
module SSTUModelSwitch
return System

Property Details

defaultModel public_oe property

public string defaultModel
return string

modelNodes public_oe property

public ModelNode[],SSTUTools modelNodes
return SSTUTools.ModelNode[]

name public_oe property

public string name
return string

owner public_oe property

public SSTUModelSwitch,SSTUTools owner
return SSTUModelSwitch

parentGroup public_oe property

public string parentGroup
return string

parentNode public_oe property

public string parentNode
return string