C# Class KerbalEngineer.VesselSimulator.PartSim

Afficher le fichier Open project: CYBUTEK/KerbalEngineer Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

DrainResources() public méthode

public DrainResources ( double time, LogMsg log ) : void
time double
log LogMsg
Résultat void

DumpPartAndParentsToLog() public méthode

public DumpPartAndParentsToLog ( LogMsg log, String prefix ) : String
log LogMsg
prefix String
Résultat String

DumpPartToLog() public méthode

public DumpPartToLog ( LogMsg log, String prefix, List allParts = null ) : void
log LogMsg
prefix String
allParts List
Résultat void

EmptyOf() public méthode

public EmptyOf ( HashSet types ) : bool
types HashSet
Résultat bool

GetCost() public méthode

public GetCost ( int currentStage ) : double
currentStage int
Résultat double

GetMass() public méthode

public GetMass ( int currentStage, bool forCoM = false ) : double
currentStage int
forCoM bool
Résultat double

GetResourcePriority() public méthode

public GetResourcePriority ( ) : int
Résultat int

GetSourceSet() public méthode

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
Résultat void

GetSourceSet_Internal() public méthode

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
Résultat void

GetSourceSet_Old() public méthode

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
Résultat void

GetStartMass() public méthode

public GetStartMass ( ) : double
Résultat double

New() public static méthode

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

Release() public méthode

public Release ( ) : void
Résultat void

ReleasePart() public méthode

public ReleasePart ( ) : void
Résultat void

RemoveAttachedParts() public méthode

public RemoveAttachedParts ( HashSet partSims ) : void
partSims HashSet
Résultat void

SetupAttachNodes() public méthode

public SetupAttachNodes ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
partSimLookup PartSim>.Dictionary
log LogMsg
Résultat void

SetupParent() public méthode

public SetupParent ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
partSimLookup PartSim>.Dictionary
log LogMsg
Résultat void

TimeToDrainResource() public méthode

public TimeToDrainResource ( LogMsg log ) : double
log LogMsg
Résultat double

Property Details

baseCost public_oe property

public double baseCost
Résultat double

baseMass public_oe property

public double baseMass
Résultat double

baseMassForCoM public_oe property

public double baseMassForCoM
Résultat double

centerOfMass public_oe property

public Vector3d,UnityEngine centerOfMass
Résultat UnityEngine.Vector3d

decoupledInStage public_oe property

public int decoupledInStage
Résultat int

fuelCrossFeed public_oe property

public bool fuelCrossFeed
Résultat bool

fuelTargets public_oe property

public List fuelTargets
Résultat List

hasModuleEngines public_oe property

public bool hasModuleEngines
Résultat bool

hasMultiModeEngine public_oe property

public bool hasMultiModeEngine
Résultat bool

hasVessel public_oe property

public bool hasVessel
Résultat bool

initialVesselName public_oe property

public String initialVesselName
Résultat String

inverseStage public_oe property

public int inverseStage
Résultat int

isEngine public_oe property

public bool isEngine
Résultat bool

isFuelLine public_oe property

public bool isFuelLine
Résultat bool

isFuelTank public_oe property

public bool isFuelTank
Résultat bool

isLanded public_oe property

public bool isLanded
Résultat bool

isNoPhysics public_oe property

public bool isNoPhysics
Résultat bool

isSepratron public_oe property

public bool isSepratron
Résultat bool

name public_oe property

public String name
Résultat String

noCrossFeedNodeKey public_oe property

public String noCrossFeedNodeKey
Résultat String

parent public_oe property

public PartSim,KerbalEngineer.VesselSimulator parent
Résultat PartSim

parentAttach public_oe property

public AttachModes parentAttach
Résultat AttachModes

part public_oe property

public Part part
Résultat Part

partId public_oe property

public int partId
Résultat int

postStageMassAdjust public_oe property

public float postStageMassAdjust
Résultat float

realMass public_oe property

public double realMass
Résultat double

resPriorityOffset public_oe property

public int resPriorityOffset
Résultat int

resPriorityUseParentInverseStage public_oe property

public bool resPriorityUseParentInverseStage
Résultat bool

resRequestRemainingThreshold public_oe property

public double resRequestRemainingThreshold
Résultat double

resourceDrains public_oe property

public ResourceContainer,KerbalEngineer.VesselSimulator resourceDrains
Résultat KerbalEngineer.VesselSimulator.ResourceContainer

resourceFlowStates public_oe property

public ResourceContainer,KerbalEngineer.VesselSimulator resourceFlowStates
Résultat KerbalEngineer.VesselSimulator.ResourceContainer

resources public_oe property

public ResourceContainer,KerbalEngineer.VesselSimulator resources
Résultat KerbalEngineer.VesselSimulator.ResourceContainer

stageIndex public_oe property

public int stageIndex
Résultat int

startMass public_oe property

public double startMass
Résultat double

surfaceMountFuelTargets public_oe property

public List surfaceMountFuelTargets
Résultat List

vesselName public_oe property

public String vesselName
Résultat String

vesselType public_oe property

public VesselType vesselType
Résultat VesselType