Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Protected Member Functions | Protected Attributes | Properties | List of all members
FinePrint.Contracts.Parameters.RepairPartParameter Class Reference
Inheritance diagram for FinePrint.Contracts.Parameters.RepairPartParameter:
Contracts.ContractParameter Contracts.IContractParameterHost

Public Member Functions

 RepairPartParameter ()
 
 RepairPartParameter (uint partId, string partName, uint vesselId, string vesselName, CelestialBody targetBody)
 Constructor More...
 
void UpdatePartInfo (uint partId, string partName, uint vesselId, string vesselName, CelestialBody targetBody)
 Update the follow fields in the parameter. More...
 
- Public Member Functions inherited from Contracts.ContractParameter
ContractParameter AddParameter (ContractParameter parameter, string id=null)
 
bool AllChildParametersComplete ()
 
bool AnyChildParametersFailed ()
 
long CreateID ()
 
void Disable (bool recursive=false)
 
void Enable ()
 
ContractParameter GetParameter (int index)
 
ContractParameter GetParameter (string id)
 
ContractParameter GetParameter (System.Type type)
 
GetParameter< T > (string id=null)
 
void Load (ConfigNode node)
 
void NestToParent (IContractParameterHost parent)
 
void ParameterStateUpdate (ContractParameter p)
 
void Register ()
 
void RemoveParameter (int index)
 
void RemoveParameter (string id)
 
void RemoveParameter (System.Type type)
 
void RemoveParameter (ContractParameter parameter)
 
void Reset ()
 
void Save (ConfigNode node)
 
void SetFunds (float completion, CelestialBody body=null)
 
void SetFunds (float completion, float failure, CelestialBody body=null)
 
void SetReputation (float completion, float failure, CelestialBody body=null)
 
void SetReputation (float completion, CelestialBody body=null)
 
void SetScience (float completion, CelestialBody body=null)
 
void Unregister ()
 
void Update ()
 

Protected Member Functions

override string GetHashString ()
 
override string GetMessageComplete ()
 
override string GetTitle ()
 
override void OnLoad (ConfigNode node)
 
override void OnRegister ()
 
override void OnSave (ConfigNode node)
 
override void OnUnregister ()
 
- Protected Member Functions inherited from Contracts.ContractParameter
virtual void AwardCompletion ()
 
virtual string GetMessageFailed ()
 
virtual string GetMessageIncomplete ()
 
virtual string GetNotes ()
 
virtual void OnParameterStateChange (ContractParameter p)
 
virtual void OnReset ()
 
virtual void OnUpdate ()
 
virtual void PenalizeFailure ()
 
void SendStateMessage (string title, string message, MessageSystemButton.MessageButtonColor color, MessageSystemButton.ButtonIcons icon)
 Sends user a text message via messaging system More...
 
void SetComplete ()
 
void SetFailed ()
 
void SetIncomplete ()
 

Protected Attributes

AvailablePart ap
 
string partName
 
uint partPersistentId
 
CelestialBody targetBody
 
string vesselName = ""
 
uint vesselPersistentId
 
Vessel vsl
 
- Protected Attributes inherited from Contracts.ContractParameter
bool allowPartialFailure = false
 
bool disableOnStateChange = true
 
bool enabled = true
 
string id = null
 
bool optional = false
 
ParameterState state = ParameterState.Incomplete
 

Properties

string PartName [get]
 The Name of the Part for this contract. More...
 
uint PartPersistentId [get]
 The persistentId for the Part that is selected for this contract. More...
 
CelestialBody TargetBody [get]
 The Target CB for the contract More...
 
string VesselName [get]
 
uint VesselPersistentId [get]
 The persistentId for the Vessel that is selected for this contract. More...
 
- Properties inherited from Contracts.ContractParameter
bool AllowPartialFailure [get, set]
 Whether a parameter failure also fails the contract. More...
 
IEnumerable< ContractParameterAllParameters [get]
 
bool DisableOnStateChange [get, set]
 
bool Enabled [get, set]
 
string HashString [get]
 
string ID [get, set]
 
string MessageComplete [get]
 
string MessageFailed [get]
 
string MessageIncomplete [get]
 
string Notes [get]
 
bool Optional [get, set]
 
int ParameterCount [get]
 
IContractParameterHost Parent [get]
 
Contract Root [get]
 
ParameterState State [get]
 
ContractParameter this[int index] [get]
 
ContractParameter this[string id] [get]
 
ContractParameter this[System.Type type] [get]
 
string Title [get]
 
- Properties inherited from Contracts.IContractParameterHost
int ParameterCount [get]
 
IContractParameterHost Parent [get]
 
Contract Root [get]
 
ContractParameter this[int index] [get]
 
ContractParameter this[string id] [get]
 
ContractParameter this[System.Type type] [get]
 
string Title [get]
 

Additional Inherited Members

- Public Attributes inherited from Contracts.ContractParameter
double FundsCompletion
 The funds gained for completing this parameter More...
 
double FundsFailure
 The funds gained for failing this parameter More...
 
EventData< ContractParameter,
ParameterState
OnStateChange = new EventData<ContractParameter, ParameterState>("OnStateChange")
 
float ReputationCompletion
 The reputation gain for completing this parameter More...
 
float ReputationFailure
 The reputation gain for failing this parameter More...
 
float ScienceCompletion
 The science gained for completing this parameter More...
 

Constructor & Destructor Documentation

FinePrint.Contracts.Parameters.RepairPartParameter.RepairPartParameter ( )
inline
FinePrint.Contracts.Parameters.RepairPartParameter.RepairPartParameter ( uint  partId,
string  partName,
uint  vesselId,
string  vesselName,
CelestialBody  targetBody 
)
inline

Constructor

Parameters
partIdthe Part persistentId that needs to be repaired
partNamethe AvailablePart part name
vesselIdthe Vessel persistentId that part is a part of
vesselNamethe vessel name (localized)
targetBodythe target body

Member Function Documentation

override string FinePrint.Contracts.Parameters.RepairPartParameter.GetHashString ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override string FinePrint.Contracts.Parameters.RepairPartParameter.GetMessageComplete ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override string FinePrint.Contracts.Parameters.RepairPartParameter.GetTitle ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void FinePrint.Contracts.Parameters.RepairPartParameter.OnLoad ( ConfigNode  node)
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void FinePrint.Contracts.Parameters.RepairPartParameter.OnRegister ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void FinePrint.Contracts.Parameters.RepairPartParameter.OnSave ( ConfigNode  node)
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

override void FinePrint.Contracts.Parameters.RepairPartParameter.OnUnregister ( )
inlineprotectedvirtual

Reimplemented from Contracts.ContractParameter.

void FinePrint.Contracts.Parameters.RepairPartParameter.UpdatePartInfo ( uint  partId,
string  partName,
uint  vesselId,
string  vesselName,
CelestialBody  targetBody 
)
inline

Update the follow fields in the parameter.

Parameters
partIdthe Part persistentId that needs to be repaired
partNamethe AvailablePart part name
vesselIdthe Vessel persistentId that part is a part of
vesselNamethe vessel name (localized)
targetBodythe target body

Member Data Documentation

AvailablePart FinePrint.Contracts.Parameters.RepairPartParameter.ap
protected
string FinePrint.Contracts.Parameters.RepairPartParameter.partName
protected
uint FinePrint.Contracts.Parameters.RepairPartParameter.partPersistentId
protected
CelestialBody FinePrint.Contracts.Parameters.RepairPartParameter.targetBody
protected
string FinePrint.Contracts.Parameters.RepairPartParameter.vesselName = ""
protected
uint FinePrint.Contracts.Parameters.RepairPartParameter.vesselPersistentId
protected
Vessel FinePrint.Contracts.Parameters.RepairPartParameter.vsl
protected

Property Documentation

string FinePrint.Contracts.Parameters.RepairPartParameter.PartName
get

The Name of the Part for this contract.

uint FinePrint.Contracts.Parameters.RepairPartParameter.PartPersistentId
get

The persistentId for the Part that is selected for this contract.

CelestialBody FinePrint.Contracts.Parameters.RepairPartParameter.TargetBody
get

The Target CB for the contract

string FinePrint.Contracts.Parameters.RepairPartParameter.VesselName
get

The Name of the Vessel for this contract.

uint FinePrint.Contracts.Parameters.RepairPartParameter.VesselPersistentId
get

The persistentId for the Vessel that is selected for this contract.


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