示例#1
0
// --------------------------------------------------------------
// 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);
}
示例#2
0
文件: eva.cpp 项目: dseagrav/NASSP
// ==============================================================
// API interface
// ==============================================================
void EVA::clbkSaveState (FILEHANDLE scn)

{
	SaveDefaultState (scn);
	oapiWriteScenario_int (scn, "GODOCK", GoDock1 ? 1 : 0);
}