C# Class Engineer.VesselSimulator.PartSim

Mostrar archivo Open project: CYBUTEK/Engineer Class Usage Examples

Public Properties

Property Type Description
baseMass double
cost float
decoupledInStage int
fuelCrossFeed bool
fuelTargets List
hasModuleEngines bool
hasModuleEnginesFX bool
hasMultiModeEngine bool
hasVessel bool
initialVesselName String
inverseStage int
isDecoupler bool
isEngine bool
isFuelLine bool
isFuelTank bool
isLanded bool
isNoPhysics bool
isSepratron bool
localCorrectThrust bool
name String
noCrossFeedNodeKey String
parent PartSim
parentAttach AttachModes
part Part
partId int
resourceDrains ResourceContainer
resourceFlowStates ResourceContainer
resources ResourceContainer
startMass double
vesselName String
vesselType VesselType

Public Methods

Method Description
CreateEngineSims ( List allEngines, double atmosphere, double velocity, bool vectoredThrust, LogMsg log ) : void
DecouplerCount ( ) : int
DrainResources ( double time ) : void
DumpPartAndParentsToBuffer ( StringBuilder buffer, String prefix ) : String
DumpPartToBuffer ( StringBuilder buffer, String prefix, List allParts = null ) : void
GetMass ( ) : double
GetSourceSet ( int type, List allParts, HashSet visited, LogMsg log, String indent ) : HashSet
GetStartMass ( ) : double
PartSim ( Part thePart, int id, double atmosphere, LogMsg log ) : System
ReleasePart ( ) : void
RemoveAttachedParts ( HashSet partSims ) : void
SetupAttachNodes ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
SetupParent ( PartSim>.Dictionary partSimLookup, LogMsg log ) : void
TimeToDrainResource ( ) : double

Private Methods

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

Method Details

CreateEngineSims() public method

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

DecouplerCount() public method

public DecouplerCount ( ) : int
return int

DrainResources() public method

public DrainResources ( double time ) : void
time double
return void

DumpPartAndParentsToBuffer() public method

public DumpPartAndParentsToBuffer ( StringBuilder buffer, String prefix ) : String
buffer StringBuilder
prefix String
return String

DumpPartToBuffer() public method

public DumpPartToBuffer ( StringBuilder buffer, String prefix, List allParts = null ) : void
buffer StringBuilder
prefix String
allParts List
return void

GetMass() public method

public GetMass ( ) : double
return double

GetSourceSet() public method

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

GetStartMass() public method

public GetStartMass ( ) : double
return double

PartSim() public method

public PartSim ( Part thePart, int id, double atmosphere, LogMsg log ) : System
thePart Part
id int
atmosphere double
log LogMsg
return System

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 ( ) : double
return double

Property Details

baseMass public_oe property

public double baseMass
return double

cost public_oe property

public float cost
return float

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

hasModuleEnginesFX public_oe property

public bool hasModuleEnginesFX
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

isDecoupler public_oe property

public bool isDecoupler
return bool

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

localCorrectThrust public_oe property

public bool localCorrectThrust
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,Engineer.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

resourceDrains public_oe property

public ResourceContainer,Engineer.VesselSimulator resourceDrains
return ResourceContainer

resourceFlowStates public_oe property

public ResourceContainer,Engineer.VesselSimulator resourceFlowStates
return ResourceContainer

resources public_oe property

public ResourceContainer,Engineer.VesselSimulator resources
return ResourceContainer

startMass public_oe property

public double startMass
return double

vesselName public_oe property

public String vesselName
return String

vesselType public_oe property

public VesselType vesselType
return VesselType