C# 클래스 SSTUTools.SSTUModularFuelTank

상속: PartModule, IPartCostModifier, IPartMassModifier
파일 보기 프로젝트 열기: shadowmage45/SSTULabs

보호된 프로퍼티들

프로퍼티 타입 설명
currentMainTankModule TankModelData
currentMountModule SSTUTools.SingleModelData
currentNoseModule SSTUTools.SingleModelData
initialized bool
mainTankModules SSTUTools.TankModelData[]
mountModules SSTUTools.SingleModelData[]
noseModules SSTUTools.SingleModelData[]

공개 메소드들

메소드 설명
GetInfo ( ) : string

Cleans up the 'default' assignments from the prefab part (put here due to lack of multi-pass loading). Also adds a quick blurb to the right-click menu regarding possible additional part functionality.

GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float

Return the adjusted cost for the part based on current tank setup

GetModuleCostChangeWhen ( ) : ModifierChangeWhen
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
GetModuleMassChangeWhen ( ) : ModifierChangeWhen
OnDestroy ( ) : void

Overriden/defined in order to remove the on-editor-ship-modified event from the game-event callback queue

OnLoad ( ConfigNode node ) : void
OnStart ( StartState state ) : void
Start ( ) : void
mountTypeUpdated ( BaseField field, object obj ) : void
noseTypeUpdated ( BaseField field, object obj ) : void
onEditorVesselModified ( ShipConstruct ship ) : void

Event callback for when vessel is modified in the editor. Used to know when the gui-fields for this module have been updated.

onMountTextureUpdated ( BaseField field, object obj ) : void
onNoseTextureUpdated ( BaseField field, object obj ) : void
onTankTextureUpdated ( BaseField field, object obj ) : void
tankDiameterUpdated ( BaseField field, object obj ) : void
tankHeightScaleUpdated ( BaseField field, object obj ) : void
tankSetUpdated ( BaseField field, object obj ) : void
tankTypeUpdated ( BaseField field, object obj ) : void

보호된 메소드들

메소드 설명
getMountRootTransform ( bool recreate ) : Transform
getNoseRootTransform ( bool recreate ) : Transform
getTankRootTransform ( bool recreate ) : Transform
initialize ( ) : void
setMainTankModuleFromEditor ( String newMainTank, bool updateSymmetry ) : void
setMountModuleFromEditor ( String newMountType, bool updateSymmetry ) : void
setNoseModuleFromEditor ( String newNoseType, bool updateSymmetry ) : void
setTankSetFromEditor ( String newTankSet, bool updateSymmetry ) : void
updateAttachNodes ( bool userInput ) : void

비공개 메소드들

메소드 설명
loadConfigData ( ) : void

Restores ModelData instances from config node data, and populates the 'currentModule' instances with the currently enabled modules.

restoreEditorFields ( ) : void

Restores the editor-only diameter and height-adjustment values;

restoreModels ( ) : void

Loads or builds the models for the currently selected modules.

selectMountEvent ( ) : void
selectNoseEvent ( ) : void
setMountTextureFromEditor ( String newSet, bool updateSymmetry ) : void
setNoseTextureFromEditor ( String newSet, bool updateSymmetry ) : void
setTankDiameterFromEditor ( float newDiameter, bool updateSymmetry ) : void
setTankScaleFromEditor ( float editorScaleValue, bool updateSymmetry ) : void
setTankTextureFromEditor ( String newSet, bool updateSymmetry ) : void
updateAvailableVariants ( ) : void
updateContainerVolume ( ) : void
updateEditorStats ( bool userInput ) : void
updateGuiState ( ) : void
updateModels ( ) : void
updateModuleStats ( ) : void

Updates the internal cached values for the modules based on the current tank settings for scale/volume/position; done separately from updating the actual models so that the values can be used without the models even being present

updateTankStats ( ) : void
updateTextureSet ( bool updateSymmetry ) : void
updateUIScaleControls ( ) : void

메소드 상세

GetInfo() 공개 메소드

Cleans up the 'default' assignments from the prefab part (put here due to lack of multi-pass loading). Also adds a quick blurb to the right-click menu regarding possible additional part functionality.
public GetInfo ( ) : string
리턴 string

GetModuleCost() 공개 메소드

Return the adjusted cost for the part based on current tank setup
public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float
defaultCost float
sit ModifierStagingSituation
리턴 float

GetModuleCostChangeWhen() 공개 메소드

public GetModuleCostChangeWhen ( ) : ModifierChangeWhen
리턴 ModifierChangeWhen

GetModuleMass() 공개 메소드

public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float
defaultMass float
sit ModifierStagingSituation
리턴 float

GetModuleMassChangeWhen() 공개 메소드

public GetModuleMassChangeWhen ( ) : ModifierChangeWhen
리턴 ModifierChangeWhen

OnDestroy() 공개 메소드

Overriden/defined in order to remove the on-editor-ship-modified event from the game-event callback queue
public OnDestroy ( ) : void
리턴 void

OnLoad() 공개 메소드

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
리턴 void

OnStart() 공개 메소드

public OnStart ( StartState state ) : void
state StartState
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

getMountRootTransform() 보호된 메소드

protected getMountRootTransform ( bool recreate ) : Transform
recreate bool
리턴 UnityEngine.Transform

getNoseRootTransform() 보호된 메소드

protected getNoseRootTransform ( bool recreate ) : Transform
recreate bool
리턴 UnityEngine.Transform

getTankRootTransform() 보호된 메소드

protected getTankRootTransform ( bool recreate ) : Transform
recreate bool
리턴 UnityEngine.Transform

initialize() 보호된 메소드

protected initialize ( ) : void
리턴 void

mountTypeUpdated() 공개 메소드

public mountTypeUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

noseTypeUpdated() 공개 메소드

public noseTypeUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

onEditorVesselModified() 공개 메소드

Event callback for when vessel is modified in the editor. Used to know when the gui-fields for this module have been updated.
public onEditorVesselModified ( ShipConstruct ship ) : void
ship ShipConstruct
리턴 void

onMountTextureUpdated() 공개 메소드

public onMountTextureUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

onNoseTextureUpdated() 공개 메소드

public onNoseTextureUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

onTankTextureUpdated() 공개 메소드

public onTankTextureUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

setMainTankModuleFromEditor() 보호된 메소드

protected setMainTankModuleFromEditor ( String newMainTank, bool updateSymmetry ) : void
newMainTank String
updateSymmetry bool
리턴 void

setMountModuleFromEditor() 보호된 메소드

protected setMountModuleFromEditor ( String newMountType, bool updateSymmetry ) : void
newMountType String
updateSymmetry bool
리턴 void

setNoseModuleFromEditor() 보호된 메소드

protected setNoseModuleFromEditor ( String newNoseType, bool updateSymmetry ) : void
newNoseType String
updateSymmetry bool
리턴 void

setTankSetFromEditor() 보호된 메소드

protected setTankSetFromEditor ( String newTankSet, bool updateSymmetry ) : void
newTankSet String
updateSymmetry bool
리턴 void

tankDiameterUpdated() 공개 메소드

public tankDiameterUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

tankHeightScaleUpdated() 공개 메소드

public tankHeightScaleUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

tankSetUpdated() 공개 메소드

public tankSetUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

tankTypeUpdated() 공개 메소드

public tankTypeUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
리턴 void

updateAttachNodes() 보호된 메소드

protected updateAttachNodes ( bool userInput ) : void
userInput bool
리턴 void

프로퍼티 상세

currentMainTankModule 보호되어 있는 프로퍼티

protected TankModelData,SSTUTools currentMainTankModule
리턴 TankModelData

currentMountModule 보호되어 있는 프로퍼티

protected SingleModelData,SSTUTools currentMountModule
리턴 SSTUTools.SingleModelData

currentNoseModule 보호되어 있는 프로퍼티

protected SingleModelData,SSTUTools currentNoseModule
리턴 SSTUTools.SingleModelData

initialized 보호되어 있는 프로퍼티

protected bool initialized
리턴 bool

mainTankModules 보호되어 있는 프로퍼티

protected TankModelData[],SSTUTools mainTankModules
리턴 SSTUTools.TankModelData[]

mountModules 보호되어 있는 프로퍼티

protected SingleModelData[],SSTUTools mountModules
리턴 SSTUTools.SingleModelData[]

noseModules 보호되어 있는 프로퍼티

protected SingleModelData[],SSTUTools noseModules
리턴 SSTUTools.SingleModelData[]