// -------------------------------------------------------------- // Save status to scenario file // -------------------------------------------------------------- void HST::clbkSaveState (FILEHANDLE scn) { char cbuf[256]; SaveDefaultState (scn); sprintf (cbuf, "%d %0.4f", ant_status, ant_proc); oapiWriteScenario_string (scn, "ANT", cbuf); sprintf (cbuf, "%d %0.4f", hatch_status, hatch_proc); oapiWriteScenario_string (scn, "HATCH", cbuf); sprintf (cbuf, "%d %0.4f", array_status, array_proc); oapiWriteScenario_string (scn, "FOLD", cbuf); }
// ============================================================== // API interface // ============================================================== void EVA::clbkSaveState (FILEHANDLE scn) { SaveDefaultState (scn); oapiWriteScenario_int (scn, "GODOCK", GoDock1 ? 1 : 0); }