C# Class SSTUTools.ModelSwitchData

Show file Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
containerIndex int
enabled bool
group ModelSwitchGroup
groupName string
localPosition Vector3
localRotation Vector3
modelDefinition SSTUTools.ModelDefinition
modelName string
moduleIDs int[]
name string
nodes SSTUTools.ModelNodeData[]
part Part
scale float
suppressNode bool

Public Methods

Method Description
ModelSwitchData ( ConfigNode node, Part owner, ModelSwitchGroup group ) : System

Private Methods

Method Description
disable ( ) : void
enable ( ) : void
getBaseTransform ( ) : Transform

Get (and/or create) the base transform for this model to reside upon Base transform is parented to the 'parent' transform (defaults to 'model') Base transform has local position and rotation applied to it; model is then parented to this new base transform

getBaseTransformName ( ) : string
getParentTransform ( ) : Transform
getPersistentData ( ) : int
initialize ( ) : void
loadPersistentData ( string val ) : void
setupModel ( ) : void

Method Details

ModelSwitchData() public method

public ModelSwitchData ( ConfigNode node, Part owner, ModelSwitchGroup group ) : System
node System.ConfigNode
owner Part
group ModelSwitchGroup
return System

Property Details

containerIndex public property

public int containerIndex
return int

enabled public property

public bool enabled
return bool

group public property

public ModelSwitchGroup,SSTUTools group
return ModelSwitchGroup

groupName public property

public string groupName
return string

localPosition public property

public Vector3 localPosition
return Vector3

localRotation public property

public Vector3 localRotation
return Vector3

modelDefinition public property

public ModelDefinition,SSTUTools modelDefinition
return SSTUTools.ModelDefinition

modelName public property

public string modelName
return string

moduleIDs public property

public int[] moduleIDs
return int[]

name public property

public string name
return string

nodes public property

public ModelNodeData[],SSTUTools nodes
return SSTUTools.ModelNodeData[]

part public property

public Part part
return Part

scale public property

public float scale
return float

suppressNode public property

public bool suppressNode
return bool