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);
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);
array< ref SceneObject > GetSceneObjects()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
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.
void OnInit()
Callback for user defined initialization. Called for all suites during TestHarness....
override string GetFileName()