C# Class SSTUTools.EngineClusterLayoutData

Show file Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
defaultMount String
engineRotationOverride float[]
engineScale float
engineSpacing float
layoutName String
mountData SSTUTools.EngineClusterLayoutMountData[]

Public Methods

Method Description
EngineClusterLayoutData ( SSTUEngineLayout layoutData, ConfigNode node, float engineScale, float moduleEngineSpacing, float moduleMountSize, float increment, bool upperMounts, bool lowerMounts ) : System
getEngineRotation ( EngineClusterLayoutMountData mount, int positionIndex ) : float
getEngineSpacing ( float engineScale, EngineClusterLayoutMountData mount ) : float
getLayoutData ( ) : SSTUEngineLayout
getMountData ( String mountName ) : EngineClusterLayoutMountData
isValidMount ( String mountName ) : bool

Private Methods

Method Description
calcAutoMountSize ( float scaledEngineSpacing, float scaledEngineMountingSize, float mountDiameter, float mountMountingSize, float layoutMultiplier, float increment, float &size, float &min, float &max ) : void
getAutoSizeNode ( SSTUEngineLayoutMountOption option, float engineSpacing, float engineMountSize, float increment ) : ConfigNode

Calculate engine mount size, minSize, and maxSize, and return a configNode defining those values for the input mount.

mergeNodes ( ConfigNode global, ConfigNode local ) : ConfigNode

Merges global and local config nodes for an engine layout Local node values have priority if they are present; any non-specified local values are defaulted to the global value

Method Details

EngineClusterLayoutData() public method

public EngineClusterLayoutData ( SSTUEngineLayout layoutData, ConfigNode node, float engineScale, float moduleEngineSpacing, float moduleMountSize, float increment, bool upperMounts, bool lowerMounts ) : System
layoutData SSTUEngineLayout
node System.ConfigNode
engineScale float
moduleEngineSpacing float
moduleMountSize float
increment float
upperMounts bool
lowerMounts bool
return System

getEngineRotation() public method

public getEngineRotation ( EngineClusterLayoutMountData mount, int positionIndex ) : float
mount EngineClusterLayoutMountData
positionIndex int
return float

getEngineSpacing() public method

public getEngineSpacing ( float engineScale, EngineClusterLayoutMountData mount ) : float
engineScale float
mount EngineClusterLayoutMountData
return float

getLayoutData() public method

public getLayoutData ( ) : SSTUEngineLayout
return SSTUEngineLayout

getMountData() public method

public getMountData ( String mountName ) : EngineClusterLayoutMountData
mountName String
return EngineClusterLayoutMountData

isValidMount() public method

public isValidMount ( String mountName ) : bool
mountName String
return bool

Property Details

defaultMount public property

public String defaultMount
return String

engineRotationOverride public property

public float[] engineRotationOverride
return float[]

engineScale public property

public float engineScale
return float

engineSpacing public property

public float engineSpacing
return float

layoutName public property

public String layoutName
return String

mountData public property

public EngineClusterLayoutMountData[],SSTUTools mountData
return SSTUTools.EngineClusterLayoutMountData[]