C# Class SSTUTools.ModelSwitchData

ファイルを表示 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_oe property

public int containerIndex
return int

enabled public_oe property

public bool enabled
return bool

group public_oe property

public ModelSwitchGroup,SSTUTools group
return ModelSwitchGroup

groupName public_oe property

public string groupName
return string

localPosition public_oe property

public Vector3 localPosition
return Vector3

localRotation public_oe property

public Vector3 localRotation
return Vector3

modelDefinition public_oe property

public ModelDefinition,SSTUTools modelDefinition
return SSTUTools.ModelDefinition

modelName public_oe property

public string modelName
return string

moduleIDs public_oe property

public int[] moduleIDs
return int[]

name public_oe property

public string name
return string

nodes public_oe property

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

part public_oe property

public Part part
return Part

scale public_oe property

public float scale
return float

suppressNode public_oe property

public bool suppressNode
return bool