C# Class KerbalEngineer.VesselSimulator.PartSim

ファイルを表示 Open project: CYBUTEK/KerbalEngineer Class Usage Examples

Public Properties

Property Type Description
baseCost double
baseMass double
baseMassForCoM double
centerOfMass UnityEngine.Vector3d
decoupledInStage int
fuelCrossFeed bool
fuelTargets List
hasModuleEngines bool
hasMultiModeEngine bool
hasVessel bool
initialVesselName String
inverseStage int
isEngine bool
isFuelLine bool
isFuelTank bool
isLanded bool
isNoPhysics bool
isSepratron bool
name String
noCrossFeedNodeKey String
parent PartSim
parentAttach AttachModes
part Part
partId int
postStageMassAdjust float
realMass double
resPriorityOffset int
resPriorityUseParentInverseStage bool
resRequestRemainingThreshold double
resourceDrains KerbalEngineer.VesselSimulator.ResourceContainer
resourceFlowStates KerbalEngineer.VesselSimulator.ResourceContainer
resources KerbalEngineer.VesselSimulator.ResourceContainer
stageIndex int
startMass double
surfaceMountFuelTargets List
vesselName String
vesselType VesselType

Public Methods

Method Description
CreateEngineSims ( List allEngines, double atmosphere, double mach, bool vectoredThrust, bool fullThrust, LogMsg log ) : void
DrainResources ( double time, LogMsg log ) : void
DumpPartAndParentsToLog ( LogMsg log, String prefix ) : String
DumpPartToLog ( LogMsg log, String prefix, List allParts = null ) : void
EmptyOf ( HashSet types ) : bool
GetCost ( int currentStage ) : double
GetMass ( int currentStage, bool forCoM = false ) : double
GetResourcePriority ( ) : int
GetSourceSet ( int type, bool includeSurfaceMountedParts, List allParts, HashSet visited, HashSet allSources, LogMsg log, String indent ) : void
GetSourceSet_Internal ( int type, bool includeSurfaceMountedParts, List allParts, HashSet visited, HashSet allSources, int &priMax, LogMsg log, String indent ) : void
GetSourceSet_Old ( int type, bool includeSurfaceMountedParts, List allParts, HashSet visited, HashSet allSources, LogMsg log, String indent ) : void
GetStartMass ( ) : double
New ( Part p, int id, double atmosphere, LogMsg log ) : PartSim
Release ( ) : void
ReleasePart ( ) : void
RemoveAttachedParts ( HashSet partSims ) : void
SetupAttachNodes ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
SetupParent ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
TimeToDrainResource ( LogMsg log ) : double

Private Methods

Method Description
CalculateThrustVector ( List thrustTransforms, LogMsg log ) : Vector3
Create ( ) : PartSim
DecoupledInStage ( Part thePart, int stage = -1 ) : int
IsActiveDecoupler ( Part thePart ) : bool
IsDecoupler ( Part thePart ) : bool
IsSepratron ( ) : bool
Reset ( PartSim partSim ) : void

Method Details

CreateEngineSims() public method

public CreateEngineSims ( List allEngines, double atmosphere, double mach, bool vectoredThrust, bool fullThrust, LogMsg log ) : void
allEngines List
atmosphere double
mach double
vectoredThrust bool
fullThrust bool
log LogMsg
return void

DrainResources() public method

public DrainResources ( double time, LogMsg log ) : void
time double
log LogMsg
return void

DumpPartAndParentsToLog() public method

public DumpPartAndParentsToLog ( LogMsg log, String prefix ) : String
log LogMsg
prefix String
return String

DumpPartToLog() public method

public DumpPartToLog ( LogMsg log, String prefix, List allParts = null ) : void
log LogMsg
prefix String
allParts List
return void

EmptyOf() public method

public EmptyOf ( HashSet types ) : bool
types HashSet
return bool

GetCost() public method

public GetCost ( int currentStage ) : double
currentStage int
return double

GetMass() public method

public GetMass ( int currentStage, bool forCoM = false ) : double
currentStage int
forCoM bool
return double

GetResourcePriority() public method

public GetResourcePriority ( ) : int
return int

GetSourceSet() public method

public GetSourceSet ( int type, bool includeSurfaceMountedParts, List allParts, HashSet visited, HashSet allSources, LogMsg log, String indent ) : void
type int
includeSurfaceMountedParts bool
allParts List
visited HashSet
allSources HashSet
log LogMsg
indent String
return void

GetSourceSet_Internal() public method

public GetSourceSet_Internal ( int type, bool includeSurfaceMountedParts, List allParts, HashSet visited, HashSet allSources, int &priMax, LogMsg log, String indent ) : void
type int
includeSurfaceMountedParts bool
allParts List
visited HashSet
allSources HashSet
priMax int
log LogMsg
indent String
return void

GetSourceSet_Old() public method

public GetSourceSet_Old ( int type, bool includeSurfaceMountedParts, List allParts, HashSet visited, HashSet allSources, LogMsg log, String indent ) : void
type int
includeSurfaceMountedParts bool
allParts List
visited HashSet
allSources HashSet
log LogMsg
indent String
return void

GetStartMass() public method

public GetStartMass ( ) : double
return double

New() public static method

public static New ( Part p, int id, double atmosphere, LogMsg log ) : PartSim
p Part
id int
atmosphere double
log LogMsg
return PartSim

Release() public method

public Release ( ) : void
return void

ReleasePart() public method

public ReleasePart ( ) : void
return void

RemoveAttachedParts() public method

public RemoveAttachedParts ( HashSet partSims ) : void
partSims HashSet
return void

SetupAttachNodes() public method

public SetupAttachNodes ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
partSimLookup PartSim>.Dictionary
log LogMsg
return void

SetupParent() public method

public SetupParent ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
partSimLookup PartSim>.Dictionary
log LogMsg
return void

TimeToDrainResource() public method

public TimeToDrainResource ( LogMsg log ) : double
log LogMsg
return double

Property Details

baseCost public_oe property

public double baseCost
return double

baseMass public_oe property

public double baseMass
return double

baseMassForCoM public_oe property

public double baseMassForCoM
return double

centerOfMass public_oe property

public Vector3d,UnityEngine centerOfMass
return UnityEngine.Vector3d

decoupledInStage public_oe property

public int decoupledInStage
return int

fuelCrossFeed public_oe property

public bool fuelCrossFeed
return bool

fuelTargets public_oe property

public List fuelTargets
return List

hasModuleEngines public_oe property

public bool hasModuleEngines
return bool

hasMultiModeEngine public_oe property

public bool hasMultiModeEngine
return bool

hasVessel public_oe property

public bool hasVessel
return bool

initialVesselName public_oe property

public String initialVesselName
return String

inverseStage public_oe property

public int inverseStage
return int

isEngine public_oe property

public bool isEngine
return bool

isFuelLine public_oe property

public bool isFuelLine
return bool

isFuelTank public_oe property

public bool isFuelTank
return bool

isLanded public_oe property

public bool isLanded
return bool

isNoPhysics public_oe property

public bool isNoPhysics
return bool

isSepratron public_oe property

public bool isSepratron
return bool

name public_oe property

public String name
return String

noCrossFeedNodeKey public_oe property

public String noCrossFeedNodeKey
return String

parent public_oe property

public PartSim,KerbalEngineer.VesselSimulator parent
return PartSim

parentAttach public_oe property

public AttachModes parentAttach
return AttachModes

part public_oe property

public Part part
return Part

partId public_oe property

public int partId
return int

postStageMassAdjust public_oe property

public float postStageMassAdjust
return float

realMass public_oe property

public double realMass
return double

resPriorityOffset public_oe property

public int resPriorityOffset
return int

resPriorityUseParentInverseStage public_oe property

public bool resPriorityUseParentInverseStage
return bool

resRequestRemainingThreshold public_oe property

public double resRequestRemainingThreshold
return double

resourceDrains public_oe property

public ResourceContainer,KerbalEngineer.VesselSimulator resourceDrains
return KerbalEngineer.VesselSimulator.ResourceContainer

resourceFlowStates public_oe property

public ResourceContainer,KerbalEngineer.VesselSimulator resourceFlowStates
return KerbalEngineer.VesselSimulator.ResourceContainer

resources public_oe property

public ResourceContainer,KerbalEngineer.VesselSimulator resources
return KerbalEngineer.VesselSimulator.ResourceContainer

stageIndex public_oe property

public int stageIndex
return int

startMass public_oe property

public double startMass
return double

surfaceMountFuelTargets public_oe property

public List surfaceMountFuelTargets
return List

vesselName public_oe property

public String vesselName
return String

vesselType public_oe property

public VesselType vesselType
return VesselType