|
void | AssumeDragCubePosition (string name) |
| Used by the DragCubeSystem when it is generating drag cube entries on startup if none are found for this module. When called the module should set it's model position/setup to match the expected position/orientation when 'name' drag cube is active. More...
|
|
void | ExtendPiston () |
| Change the target to the max value More...
|
|
string[] | GetDragCubeNames () |
| Should return an array of strings that are the drag cube names that this module implements. More...
|
|
override string | GetInfo () |
| Returns formatted string of additional data for use in the VAB and SPH More...
|
|
override string | GetModuleDisplayName () |
| Returns the display name for the module. More...
|
|
override void | OnModifyServo () |
| Updates the values of a PhysX servoJoint in Flight, including enabling/disabling the servoJoint. Is called when The KSPField values are modified for this PartModule. More...
|
|
override void | OnPreModifyServo () |
| Updates the values of a servo in both scenes. Is called when The PAW values are modified for this PartModule. More...
|
|
override void | OnStart (PartModule.StartState state) |
|
void | RetractPiston () |
| Change the target to the min value More...
|
|
void | TogglePistonAction (KSPActionParam param) |
|
bool | UsesProceduralDragCubes () |
| Used by the DragCubeSystem when it is generating drag cube entries on startup if none are found for this module. Should return true if this module is to use procedural drag cubes and false if it is to generate drag cubes for the drag cube names returned in GetDragCubeNames method. More...
|
|
Rigidbody | AttachServoRigidBody (AttachNode node) |
| Returns the Rigidbody for the Servo Part that Joint Should connect to when this Part is the Parent for the Joint. More...
|
|
GameObject | BaseObject () |
|
virtual bool | CanBeDetached () |
| Returns true if not moving. More...
|
|
virtual bool | CanBeOffset () |
| Returns true if not moving. More...
|
|
virtual bool | CanBeRotated () |
| Returns true if not moving. More...
|
|
override void | DemoteToPhysicslessPart () |
| This method will be called from Part class DemoteToPhysicslessPart when the part is being converted from physical to physicsless part. It is called before the joints and rigidbodies are destroyed. More...
|
|
void | DisengageMotor () |
| Disengage the motor drive More...
|
|
void | DisengageServoLock () |
| Disengage the Lock on this robotic part More...
|
|
void | EngageMotor () |
| Engage the motor drive More...
|
|
bool | EngageServoLock () |
| Engage the Lock on this robotic part More...
|
|
AxisFieldLimit | GetAxisFieldLimit (string fieldName) |
| Get an AxisFieldLimit for a specific axisField More...
|
|
List< AxisFieldLimit > | GetAxisFieldLimits () |
| Get the list of AxisFieldLimit for AxisFields with hard/soft limits More...
|
|
List< PartResourceDefinition > | GetConsumedResources () |
|
Vector2 | GetHardLimits (string fieldName) |
| Get the HardLimits for the named field More...
|
|
Vector3 | GetMainAxis () |
|
float | GetModuleCost (float defaultCost, ModifierStagingSituation sit) |
| Return the amount to modify the original part's dry cost by. Returned values are added to the base cost. (0 means no effect) More...
|
|
ModifierChangeWhen | GetModuleCostChangeWhen () |
| Return under which circumstances the modulecost changes More...
|
|
float | GetModuleMass (float defaultMass, ModifierStagingSituation sit) |
| Return the amount to modify the original part's dry mass by. Returned values are added to the base mass. (0 means no effect) More...
|
|
ModifierChangeWhen | GetModuleMassChangeWhen () |
| Return under which circumstances the modulemass changes More...
|
|
Vector2 | GetSoftLimits (string fieldName) |
| Get the SoftLimits for the named field More...
|
|
bool | HasAxisFieldLimit (string fieldName) |
| Does this partmodule have an AxisField of this name with hard/soft limits More...
|
|
bool | HasAxisFieldLimits () |
| Does this partmodule have any AxisFields with hard/soft limits More...
|
|
bool | IsJointUnlocked () |
| Return the part joint state More...
|
|
GameObject | MovingObject () |
|
Rigidbody | NodeRigidBody (AttachNode node) |
|
override void | OnAwake () |
| Method fires once the module has been added to the part. Use for first time setup. Module will not have loaded fully by this point More...
|
|
override void | OnCopy (PartModule fromModule) |
| Use OnCopy to copy any additional data from the PartModule provided More...
|
|
override void | OnLoad (ConfigNode node) |
| Use OnLoad to load any additional data from the ConfigNode provided More...
|
|
override void | OnSave (ConfigNode node) |
| Use OnSave to serialize additional module information into the ConfigNode provided More...
|
|
override void | OnStart (PartModule.StartState state) |
|
override void | OnStartBeforePartAttachJoint (StartState modStartState) |
| Called in flight scene in Part.Start just before the Part attachnode joints are created. More...
|
|
override void | PromoteToPhysicalPart () |
| This method will be called from Part class PromoteToPhysicalPart when the part is being converted from physicsless to physical part. More...
|
|
bool | ServoTransformCollider (string colName) |
|
void | SetHardLimits (string fieldName, Vector2 newLimits) |
| Set the HardLimits for the named field More...
|
|
virtual void | SetLaunchPosition (float val) |
| Save the launch position. More...
|
|
void | SetSoftLimits (string fieldName, Vector2 newLimits) |
| set the HardLimits for the named field More...
|
|
void | AddPartModuleAdjuster (AdjusterPartModuleBase newAdjuster) |
| Call this to add an adjuster to this part module. More...
|
|
void | AddPartModuleAdjusterList (List< AdjusterPartModuleBase > moduleAdjusters) |
| Applies the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too. More...
|
|
bool | AppliedUpgrades () |
| Returns true if upgrades are applied More...
|
|
void | ApplyAdjustersOnStart () |
| Called when a part module is loaded and applies all of the currently loaded adjusters. More...
|
|
virtual void | ApplyUpgradeNode (List< string > appliedUps, ConfigNode node, bool doLoad) |
| Applies the upgrades to a confignode. Will either copy the upgrades back to the node or (if doLoad) calls load/onload on it. More...
|
|
virtual bool | ApplyUpgrades (StartState state) |
| Will find and apply upgrades. Called during Part's ModulesOnStart, before a module's OnStart. More...
|
|
void | Awake () |
|
delegate bool | boolPMApplyUpgrades (PartModule pm, StartState state) |
|
delegate bool | boolPMBoolDelegate (PartModule pm, bool apply) |
|
void | ClearPersistentId () |
| Clear the modules persistentId More...
|
|
void | Copy (PartModule fromModule) |
|
virtual bool | FindUpgrades (bool fillApplied, ConfigNode node=null) |
| Find applicable upgrades to the partmodule (isunlocked and isenabled) and add to the upgradesApplied list. Pass true if you want to add the upgrades to upgradesApplied, false if you just want to know if at least one upgrade is applicable (unlocked rather than enabled) More...
|
|
virtual Color | GetCurrentColor () |
| Returns the current part module color. More...
|
|
virtual Color | GetCurrentColor (string fieldName) |
| Returns the current part module color for a field where usespe. More...
|
|
uint | GetPersistenActiontId () |
| Get the modules persistentID, and create one if it doesnt already have one More...
|
|
uint | GetPersistentId () |
| Get the modules persistentID, and create one if it doesnt already have one More...
|
|
virtual string | GetStagingDisableText () |
|
virtual string | GetStagingEnableText () |
|
virtual string | GetUpgradeInfo () |
| Called by Upgrade Stats dialog More...
|
|
bool | HasUpgrades () |
| Returns true if upgrades exist for the partmodule More...
|
|
virtual bool | IsStageable () |
| Should this module be counted when seeing whether to have a stack icon present? Override in a module for custom behavior; otherwise returns true if the module (or something the module inherits from above PartModule itself) overrides OnActive() More...
|
|
bool | IsValidContractObjective (string objectiveType) |
| Returns if, for example, an antenna part module qualifies as an antenna for contracts. More...
|
|
void | Load (ConfigNode node) |
|
virtual void | LoadUpgrades (ConfigNode node) |
| Loads module-relevant upgrades from the partmodule confignode More...
|
|
uint | NewPersistentId () |
| Reset the modules persistentId to a new number More...
|
|
virtual void | OnActive () |
| Called when the part is set active (after unpacking etc) More...
|
|
virtual void | OnColorChanged (Color color) |
| Meant to be overwritten by part modules implementing color changes. In this case, it doesn't matter which color picker changed specifically. More...
|
|
virtual void | OnColorChanged (Color color, string pickerID="") |
| Meant to be overwritten by part modules implementing color changes More...
|
|
virtual void | OnConstructionModeFixedUpdate () |
| This method will be called when in EVA Construction mode and this part and itself is disabled (when it is not attached to a vessel) every FixedUpdate(). More...
|
|
virtual void | OnConstructionModeUpdate () |
| This method will be called when in EVA Construction mode and this part and itself is disabled (when it is not attached to a vessel) every Update(). More...
|
|
virtual void | OnIconCreate () |
| Method fires just before components are stripped from the gameobject to make it an icon. (The part is instantiated and then various components like Part, PartModule, EffectBehaviour, Colliders, Particles, etc are stripped and then it's set as the icon prefab. This lets PartModules do stuff to the model right before that happens. More...
|
|
virtual void | OnInactive () |
| Called before the part goes inactive (after packing etc) More...
|
|
virtual void | OnInitialize () |
| Called on all modules after all parts are loaded but before they give the ship to the game More...
|
|
virtual void | OnInventoryModeDisable () |
| This method will be called when this modules part and itself is first disabled (when it is not attached to a vessel) when created in Inventory/Construction mode. More...
|
|
virtual void | OnInventoryModeEnable () |
| This method will be called when this modules part and itself is first enabled (when it is attached to a vessel) when created in Inventory/Construction mode. More...
|
|
void | OnModuleAdjusterAddedWrapper (AdjusterPartModuleBase adjuster) |
| Wrapper to check the mission expansion availability before performing processing specific to this part module when an adjuster is added. More...
|
|
virtual void | OnModuleAdjusterRemoved (AdjusterPartModuleBase adjuster) |
| Perform processing specific to this part module when an adjuster is removed. By default this does nothing is up to each part module to implement it properly. More...
|
|
virtual void | OnPartCreatedFomInventory (ModuleInventoryPart moduleInventoryPart) |
| This method is called when a part is being taken out from a slot while being in EVAConstruction mode. More...
|
|
virtual void | OnStart (StartState state) |
| Called when the part starts. The StartState gives an indication of where in flight you are. All values may not be plugged in! More...
|
|
virtual void | OnStartFinished (StartState state) |
| Called when the part finishes starting. The StartState gives an indication of where in flight you are. All values may not be plugged in! More...
|
|
virtual void | OnStoredInInventory (ModuleInventoryPart moduleInventoryPart) |
| Called when the part is stored in an inventory. More...
|
|
virtual void | OnUpdate () |
| Called every frame that the part is active More...
|
|
virtual void | OnWasCopied (PartModule copyPartModule, bool asSymCounterpart) |
| Called when the PartModule was copied, through Alt+Copy or symmetry More...
|
|
virtual void | OnWillBeCopied (bool asSymCounterpart) |
| Called when the PartModule is about to be copied, through Alt+Copy or symmetry More...
|
|
virtual bool | OnWillBeMirrored (ref Quaternion rotation, AttachNode selPartNode, Part partParent) |
| This is called in the Editor scene when a symmetry copy of a part is being positioned. Only called on the symmetry parts and only when symmetry mode is set to Mirror. It allows the mirror rotation to be changed and returned before being applied to the symmetry copy part. - Parameters
-
rotation | The current calculated rotation. Will be updated if method returns true. |
selPartNode | The attachnode. |
partParent | The part that will become this part's parent. |
- Returns
- True if the rotation was changed. Otherwise will return false.
More...
|
|
virtual List< Color > | PresetColors () |
| Preset colors received for any part module. By default, returns only black, override to make your own selection. More...
|
|
virtual string | PrintUpgrades () |
|
void | RemovePartModuleAdjuster (AdjusterPartModuleBase oldAdjuster) |
| Call this to remove an adjuster from this part module. More...
|
|
void | RemovePartModuleAdjusterList (List< AdjusterPartModuleBase > moduleAdjusters) |
| Removes the appropriate module adjusters. Performs checks to make sure that the adjusters are valid too. More...
|
|
void | Save (ConfigNode node) |
|
virtual void | SetStaging (bool newValue) |
| Run by the part's staging toggle handler, sets staging on modules on symmetry counterparts. More...
|
|
void | SetStagingState (bool newState) |
| Set the staging enabled bool for this module. More...
|
|
virtual bool | StagingEnabled () |
| Gets current staging status (is staging enabled for this module) Override me! More...
|
|
virtual bool | StagingToggleEnabledEditor () |
|
virtual bool | StagingToggleEnabledFlight () |
|
void | ToggleStaging () |
|
virtual void | UpdateStagingToggle () |
| Updates the staging toggle More...
|
|
delegate void | voidPMApplyNodeDelegate (PartModule pm, List< string > appliedUps, ConfigNode node, bool doLoad) |
|
delegate void | voidPMDelegate (PartModule pm) |
|
delegate void | voidPMNodeDelegate (PartModule pm, ConfigNode node) |
|
|
Vector3 | CalcTargetPosition (Vector3 startingPosition, float offset, bool relative) |
|
void | ExtendPistonAction (KSPActionParam param) |
|
override float | GetFrameDisplacement () |
| Checks how much the rod of the piston moved during one frame More...
|
|
override void | InitAxisFieldLimits () |
|
override bool | IsMoving () |
| Is the servo currently moving/traversing? More...
|
|
void | LateUpdate () |
|
void | ModifyLimits (object field) |
|
override void | OnDestroy () |
|
override void | OnFixedUpdate () |
| Called every physics/fixed frame that the part is active More...
|
|
override void | OnJointInit (bool goodSetup) |
| Called after BaseServo Joint Initialized and before Part attachJoint has been created. More...
|
|
override void | OnPostStartJointInit () |
| Called after OnJointInit and the Part attachJoint has been created. More...
|
|
void | OnResourceNonemptyEmpty (PartResource resource) |
| Hook for when EC runs out More...
|
|
override void | OnSaveShip (ShipConstruct ship) |
| When Ship is saved - we must apply orgPos and orgRot changes to the parts. More...
|
|
override void | OnServoLockApplied () |
| Called when the servo lock is about to be applied More...
|
|
override void | OnServoLockRemoved () |
| Called when the servo lock is about to be removed More...
|
|
override void | OnServoMotorDisengaged () |
| Called when the servo lock is about to be removed More...
|
|
override void | OnServoMotorEngaged () |
| Called when the servo lock is about to be applied More...
|
|
override void | OnVisualizeServo (bool moveBase) |
| Updates the transform of a robotic part in the editor scenes, so users can visualize rotations. Is called when The KSPField values are modified for this PartModule. More...
|
|
override void | ResetLaunchPosition () |
| Resets the launch position of the part. Needs to be overriden by part to acomodate it's parameters. More...
|
|
void | RetractPistonAction (KSPActionParam param) |
|
override void | SetInitialDisplacement () |
| Sets the initial transform angle for previousDisplacement More...
|
|
override void | UpdateAxisFieldHardLimit (string fieldName, Vector2 newlimits) |
|
override void | UpdateAxisFieldSoftLimit (string fieldName, Vector2 newlimits) |
|
override void | UpdatePAWUI (UI_Scene currentScene) |
|
void | UpdateTargetPosition (object field) |
|
void | UpdateTraverseVelocity (object field) |
|
virtual void | ApplyCoordsUpdate () |
| Applies Part Coordinate Updates. Can be overridden to apply appropriate changes to Part positions/rotations and components (servo transforms within a Part). Will be called when a Part is Unpacked, Vessel is Modified, and just before a ShipConstruct is saved. More...
|
|
void | CalculateAverageRateOfMovement () |
| Uses the readings from GetFrameDisplacement to determine the average rate of change in the part's transform More...
|
|
virtual double | CalculatePower () |
| Calculates the current power consumption in kW More...
|
|
virtual void | CalculateResourceDrain () |
| Calculates the current resource drain rate and determines if there's still enough More...
|
|
void | CreateServoRigidbody () |
| If the movingPartObject is set will set movingPartRB or add a RigidBody to the movingPartObject and set it's parameters and mass. More...
|
|
float | currentTransformAngle () |
|
float | currentTransformPosition () |
|
void | FixedUpdate () |
| Handles resource requests More...
|
|
void | InitJoint () |
| Initializes the Servo Joint. Assumes the servoJoint is the Part.attachJoint.Joint. This can be overridden/changed in OnJointInit for specific servo being implemented using this class, which is called at the end of this method. In OnJointInit you will need to set servoJoint, axis, secAxis, initialOrentation, lastOrientation and pivot. PostStartInitJoint() and OnPostStartJointInit() are called AFTER the Part has created it's Part.attachJoint. More...
|
|
void | ManuallyModifyEngaged (object field) |
|
void | ModifyEngaged (object field) |
|
void | ModifyLocked (object field) |
|
void | ModifyServo (object field) |
| Call this to Update the Servo rotation. Will Call VisualizeServo or OnUpdateServo. More...
|
|
void | MotorOffAction (KSPActionParam param) |
|
void | MotorOnAction (KSPActionParam param) |
|
void | OnEditorCompoundPartLinked (CompoundPart linkedPart) |
|
void | OnEditorPartPicked (Part pickedPart) |
|
void | OnEditorPartPlaced (Part placedPart) |
|
void | OnPartMenuClose (Part inpPart) |
|
void | OnPartMenuOpen (UIPartActionWindow window, Part inpPart) |
|
void | PostStartInitJoint () |
| Completes the Initialize of the Servo Joint. sets the pJoint (part.attachJoint reference) and assigns it to the servoJoint ONLY if it hasn't already been assigned in InitJoint/OnJointInit. Connects the rigidbod to the joint and moves/rotates the moving part to ensure we dont hit Unity Angular Joint Limit Madness Will then call OnPostStartJointInit() In OnPostStartJointInit you will need to set any target values to their initial start ones and call ModifyServo amd set any init complete flags. More...
|
|
virtual void | RecurseAttachNodeUpdate (Part p) |
| Will start at the passed in Part and then recurse (through all children) looking for BaseServo Parts. For each BaseServo Part found will update the attach Nodes (on the moving servo transform) position and orientation. Will do nothing is ServoInitComplete is false. More...
|
|
virtual void | RecurseCoordUpdate (Part p, Part rootPart) |
| Sets Part orgPos and orgRot. Is called at the end of ApplyCoordsUpdate(). More...
|
|
void | ResetPosition (KSPActionParam param) |
|
void | ResetPosition () |
|
void | RestoreSpanningPartTargets () |
|
void | SaveSpanningPartTargets () |
|
void | ServoDisgageLockAction (KSPActionParam param) |
|
void | ServoEngageLockAction (KSPActionParam param) |
|
void | SetServoMass () |
|
void | ToggleMotorAction (KSPActionParam param) |
|
void | ToggleServoLockedAction (KSPActionParam param) |
|
virtual void | Update () |
|
void | UpdateAxisFieldLimit (string fieldName, Vector2 hardLimits, Vector2 softLimits) |
|
float | UpdateFieldLimits (BaseAxisField axisField, Vector2 newlimits, float currentValue, UI_FloatRange uiField=null) |
| Change a fields limits and update the associated bits More...
|
|
void | VisualizeServo (bool moveChildren) |
|
ConfigNode | GetUpgrade (string name) |
|
virtual void | LoadUpgradesApplied (List< string > applieds, ConfigNode node) |
| Load the applied upgrade names More...
|
|
virtual void | OnModuleAdjusterAdded (AdjusterPartModuleBase adjuster) |
| Perform processing specific to this part module when an adjuster is added. By default this does nothing is up to each part module to implement it properly. More...
|
|
virtual void | SaveUpgradesApplied (ConfigNode node) |
| Save the applied upgrades. More...
|
|
IEnumerator | UpgradeWaitForScenarioModules () |
|