20 private const string FILE_ROOT =
"$saves:";
21 private const string FILE_ROOT_SCENES =
"Scenes";
22 private const string PARAM_MISSION =
"Mission";
23 private const string PARAM_TIME =
"InitTime";
24 private const string PARAM_RAIN =
"InitWeatherRain";
25 private const string PARAM_FOG =
"InitWeatherFog";
26 private const string PARAM_OBJ_COUNT =
"SceneObjectsCount";
27 private const string PARAM_OBJ_NAME =
"SceneObject";
29 private string m_FileSceneName;
34 string GetPathScenes()
36 return FILE_ROOT+
"\\"+FILE_ROOT_SCENES;
44 string file_name = GetPathScenes()+
"\\"+m_FileSceneName;
71 string path_find_pattern = GetPathScenes()+
"/*.scene";
77 list.Insert(file_name);
79 found =
FindNextFile(file_handler, file_name, file_attr);
90 m_FileSceneName = scene.GetNameScene()+
".scene";
95 SetParameterString(PARAM_MISSION, scene.GetNameMission(),
false);
97 SetParameterFloat(PARAM_TIME, scene.GetInitTime(),
false);
99 SetParameterFloat(PARAM_RAIN, scene.GetInitRain(),
false);
101 SetParameterFloat(PARAM_FOG, scene.GetInitFog(),
false);
103 SetParameterInt(PARAM_OBJ_COUNT, objects.Count(),
false);
106 for (
int i = 0; i < objects.Count(); ++i )
110 string param_name = PARAM_OBJ_NAME+
"_"+i.ToString();
112 SetSubParameterInArray (param_name, 0,
"ClassName", obj.GetTypeName(),
false);