Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
PartItemTransfer Class Referenceabstract
Inheritance diagram for PartItemTransfer:
CrewTransfer ExperimentTransfer

Public Types

enum  DismissAction { DismissAction.Cancelled, DismissAction.Interrupted, DismissAction.ItemMoved }
 

Public Member Functions

virtual void Dismiss (DismissAction dma, Part p)
 
virtual void DismissAlreadyRunning ()
 
virtual void DismissInterrupted ()
 
virtual void Setup (Part src, string itemType, string itemName, string semiValidMsg, Callback< DismissAction, Part > onDialogDismiss)
 

Static Public Member Functions

static void DismissActive ()
 

Public Attributes

Callback< DismissAction, PartonDismiss
 
List< PartSelectorpartSelectors
 
ScreenMessage scMsgInstruction
 
ScreenMessage scMsgWarning
 
string semiValidMessage = "#autoLOC_135736"
 
List< PartsemiValidParts
 
Part srcPart
 
string type = "Item"
 

Static Public Attributes

static PartItemTransfer Instance
 

Protected Member Functions

virtual void AfterPartsFound ()
 
virtual void HookAdditionalEvents ()
 
abstract bool IsSemiValidPart (Part p)
 
abstract bool IsValidPart (Part p)
 
void LateUpdate ()
 
virtual void OnDestroy ()
 
virtual void OnPartSelect (Part p)
 
virtual void OnSemiValidPartSelect (Part p)
 
virtual void OnSrcPartSelect (Part p)
 
virtual void onVesselChanged (Vessel v)
 
virtual void onVesselModified (Vessel v)
 
virtual void onVesselSituationChange (GameEvents.HostedFromToAction< Vessel, Vessel.Situations > vs)
 
virtual void UnhookAdditionalEvents ()
 

Member Enumeration Documentation

Enumerator
Cancelled 
Interrupted 
ItemMoved 

Member Function Documentation

virtual void PartItemTransfer.AfterPartsFound ( )
inlineprotectedvirtual

Reimplemented in CrewTransfer.

virtual void PartItemTransfer.Dismiss ( DismissAction  dma,
Part  p 
)
inlinevirtual

< in case it's still there

static void PartItemTransfer.DismissActive ( )
inlinestatic
virtual void PartItemTransfer.DismissAlreadyRunning ( )
inlinevirtual
virtual void PartItemTransfer.DismissInterrupted ( )
inlinevirtual
virtual void PartItemTransfer.HookAdditionalEvents ( )
inlineprotectedvirtual

Reimplemented in CrewTransfer.

abstract bool PartItemTransfer.IsSemiValidPart ( Part  p)
protectedpure virtual

Implemented in CrewTransfer, and ExperimentTransfer.

abstract bool PartItemTransfer.IsValidPart ( Part  p)
protectedpure virtual

Implemented in CrewTransfer, and ExperimentTransfer.

void PartItemTransfer.LateUpdate ( )
inlineprotected
virtual void PartItemTransfer.OnDestroy ( )
inlineprotectedvirtual
virtual void PartItemTransfer.OnPartSelect ( Part  p)
inlineprotectedvirtual

Reimplemented in CrewTransfer, and ExperimentTransfer.

virtual void PartItemTransfer.OnSemiValidPartSelect ( Part  p)
inlineprotectedvirtual
virtual void PartItemTransfer.OnSrcPartSelect ( Part  p)
inlineprotectedvirtual

Reimplemented in ExperimentTransfer.

virtual void PartItemTransfer.onVesselChanged ( Vessel  v)
inlineprotectedvirtual
virtual void PartItemTransfer.onVesselModified ( Vessel  v)
inlineprotectedvirtual
virtual void PartItemTransfer.onVesselSituationChange ( GameEvents.HostedFromToAction< Vessel, Vessel.Situations vs)
inlineprotectedvirtual
virtual void PartItemTransfer.Setup ( Part  src,
string  itemType,
string  itemName,
string  semiValidMsg,
Callback< DismissAction, Part onDialogDismiss 
)
inlinevirtual

< check if there's one already running

< Find parts

< make all potential destinations selectable

< Lock controls and post message

< Hook events //#autoLOC_135800 = <color=<<1>>>Select a part to transfer <<2>> to
[Esc]: Cancel</color>

virtual void PartItemTransfer.UnhookAdditionalEvents ( )
inlineprotectedvirtual

Reimplemented in CrewTransfer.

Member Data Documentation

PartItemTransfer PartItemTransfer.Instance
static
Callback<DismissAction, Part> PartItemTransfer.onDismiss
List<PartSelector> PartItemTransfer.partSelectors
ScreenMessage PartItemTransfer.scMsgInstruction
ScreenMessage PartItemTransfer.scMsgWarning
string PartItemTransfer.semiValidMessage = "#autoLOC_135736"
List<Part> PartItemTransfer.semiValidParts
Part PartItemTransfer.srcPart
string PartItemTransfer.type = "Item"

The documentation for this class was generated from the following file: