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";
36 return FILE_ROOT +
"\\" + FILE_ROOT_SCENES;
44 string file_name = GetPathScenes() +
"\\" + m_FileSceneName;
88 m_FileSceneName =
scene.GetNameScene() +
".scene";
93 SetParameterString(PARAM_MISSION,
scene.GetNameMission(),
false);
95 SetParameterFloat(PARAM_TIME,
scene.GetInitTime(),
false);
97 SetParameterFloat(PARAM_RAIN,
scene.GetInitRain(),
false);
99 SetParameterFloat(PARAM_FOG,
scene.GetInitFog(),
false);
101 SetParameterInt(PARAM_OBJ_COUNT,
objects.Count(),
false);
108 string param_name = PARAM_OBJ_NAME +
"_" +
i.ToString();
TStringArray GetSceneList()
override string GetFileName()
void SceneSave(SceneData scene)
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
proto native bool MakeDirectory(string name)
Makes a directory.
enum FindFileFlags FindFile(string pattern, out string fileName, out FileAttr fileAttributes, FindFileFlags flags)
proto bool FindNextFile(FindFileHandle handle, out string fileName, out FileAttr fileAttributes)
proto bool FileExist(string name)
Check existence of file.