Difference between revisions of "VESSEL2::clbkLoadStateEx"
Jump to navigation
Jump to search
m (→See also) |
(Added category.) |
||
Line 36: | Line 36: | ||
{{VESSEL2}} | {{VESSEL2}} | ||
+ | [[Category: Articles]] | ||
[[Category:OrbiterSDK|VESSEL2::clbkLoadStateEx]] | [[Category:OrbiterSDK|VESSEL2::clbkLoadStateEx]] | ||
[[Category:VESSEL2|clbkLoadStateEx]] | [[Category:VESSEL2|clbkLoadStateEx]] | ||
[[Category:Callback functions]] | [[Category:Callback functions]] |
Latest revision as of 12:07, 16 October 2022
Callback function to read the current vessel state from a scenario file.
Syntax[edit]
virtual void clbkLoadStateEx(FILEHANDLE scn, void* vs);
- scn
- File handle to the current scenario file
- vs
- VESSELSTATUS2 structure with the current default state, used for processing default parameters.
Example[edit]
void MAYFLY::clbkLoadStateEx(FILEHANDLE scn, void* vs) { char* pLine; while(oapiReadScenario_nextline(scn, pLine)) { if(!strnicmp(pLine, "LIFETIME", 8)) { sscanf(pLine + 8, "%lf", &fRemainingLifeTime); } else { ParseScenarioLineEx(pLine, vs); } } }
See also[edit]
- Vessel module sequence diagram
- ovcLoadStateEx
- ovcLoadState
- VESSEL::ParseScenarioLineEx
- oapiReadScenario_nextline