Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Expansions.Missions.Editor.CheckpointEntry Class Reference

This class represents a checkpoint entry in the mission checkpoint browser dialog More...

Inheritance diagram for Expansions.Missions.Editor.CheckpointEntry:

Public Member Functions

CheckpointEntry Create (string checkpointFile, Callback< CheckpointEntry > onSelected, Callback< CheckpointEntry > onRemove)
 Creates a new instance of this class from a prefab and initalize the entry with checkpoint values More...
 
void Terminate ()
 Destroy this mission entry More...
 
void Validate ()
 Validate if this checkpoint entry is dirty More...
 

Public Attributes

Button btnRemove
 
string fullFilePath
 File name of the checkpoint sfs file More...
 
bool isCheckpointDirty
 
bool isValid
 
GameObject warningMarker
 

Protected Member Functions

ConfigNode GetMissionNode (Game checkpointGame)
 Get the checkpoint mission More...
 
Game GetSaveGame (string checkpointFile)
 Get the save game values from the checkpoint sfs file More...
 
void Init (string checkpointFile)
 Initialize this entry with the checkpoint values More...
 
void OnButtonRemove ()
 
void OnValueChanged (bool st)
 

Properties

Game CheckpointGame [get, set]
 Reference to the Game status of the checkpoint More...
 
Mission CheckpointMission [get, set]
 Reference to the mission status of the checkpoint More...
 
Toggle Toggle [get]
 

Detailed Description

This class represents a checkpoint entry in the mission checkpoint browser dialog

Member Function Documentation

CheckpointEntry Expansions.Missions.Editor.CheckpointEntry.Create ( string  checkpointFile,
Callback< CheckpointEntry onSelected,
Callback< CheckpointEntry onRemove 
)
inline

Creates a new instance of this class from a prefab and initalize the entry with checkpoint values

Parameters
onSelectedCallback when this checkpoint is selected
onRemoveCallback when this checkpoint is flaged to remove
Returns
ConfigNode Expansions.Missions.Editor.CheckpointEntry.GetMissionNode ( Game  checkpointGame)
inlineprotected

Get the checkpoint mission

Parameters
checkpointGame
Returns
Game Expansions.Missions.Editor.CheckpointEntry.GetSaveGame ( string  checkpointFile)
inlineprotected

Get the save game values from the checkpoint sfs file

Parameters
checkpointFile
Returns
void Expansions.Missions.Editor.CheckpointEntry.Init ( string  checkpointFile)
inlineprotected

Initialize this entry with the checkpoint values

Parameters
checkpointFile
void Expansions.Missions.Editor.CheckpointEntry.OnButtonRemove ( )
inlineprotected
void Expansions.Missions.Editor.CheckpointEntry.OnValueChanged ( bool  st)
inlineprotected
void Expansions.Missions.Editor.CheckpointEntry.Terminate ( )
inline

Destroy this mission entry

void Expansions.Missions.Editor.CheckpointEntry.Validate ( )
inline

Validate if this checkpoint entry is dirty

Member Data Documentation

Button Expansions.Missions.Editor.CheckpointEntry.btnRemove
string Expansions.Missions.Editor.CheckpointEntry.fullFilePath

File name of the checkpoint sfs file

bool Expansions.Missions.Editor.CheckpointEntry.isCheckpointDirty
bool Expansions.Missions.Editor.CheckpointEntry.isValid
GameObject Expansions.Missions.Editor.CheckpointEntry.warningMarker

Property Documentation

Game Expansions.Missions.Editor.CheckpointEntry.CheckpointGame
getset

Reference to the Game status of the checkpoint

Mission Expansions.Missions.Editor.CheckpointEntry.CheckpointMission
getset

Reference to the mission status of the checkpoint

Toggle Expansions.Missions.Editor.CheckpointEntry.Toggle
get

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