VESSEL2::clbkSaveState

From OrbiterWiki
Revision as of 13:51, 9 January 2007 by Urwumpe (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Save the current state of the vessel in a scenario file.

Syntax

void clbkSaveState(FILEHANDLE scn )

scn
File handle to the currently opened scenario file.

Examples

void MAYFLY::clbkSaveState(FILEHANDLE scn)
{
	SaveDefaultState(scn);
	if(fRemainingLifeTime > 0.0)
	{
		oapiWriteScenario_float(scn, "LIFETIME", fRemainingLifeTime);
	}
}

See also

Callback functions in VESSEL2

edit

clbkADCtrlMode - clbkAnimate - clbkConsumeBufferedKey - clbkConsumeDirectKey - clbkDockEvent - clbkDrawHUD - clbkHUDMode - clbkLoadGenericCockpit - clbkLoadPanel - clbkLoadStateEx - clbkLoadVC - clbkMFDMode - clbkNavMode - clbkPanelMouseEvent - clbkPanelRedrawEvent - clbkPostCreation - clbkPostStep - clbkPreStep - clbkRCSMode - clbkSaveState - clbkSetClassCaps - clbkSetStateEx - clbkVCMouseEvent - clbkVCRedrawEvent - clbkVisualCreated - clbkVisualDestroyed