|
DayZ 1.24
|
Typedefs | |
| typedef int[] | ParseHandle |
| typedef int[] | FileHandle |
| typedef int[] | FindFileHandle |
Enumerations | |
| enum | FileMode { READ , WRITE , APPEND } |
| enum | FileAttr { DIRECTORY , HIDDEN , READONLY , INVALID } |
| enum | FindFileFlags |
| typedef int [] FileHandle |
Definition at line 390 of file EnSystem.c.
Definition at line 503 of file EnSystem.c.
Definition at line 389 of file EnSystem.c.
| Enumerator | |
|---|---|
| READ | |
| WRITE | |
| APPEND | |
Definition at line 382 of file EnSystem.c.
Definition at line 513 of file EnSystem.c.
| proto native ParseHandle BeginParse | ( | string | filename | ) |
| proto void CloseFile | ( | FileHandle | file | ) |
Close the File.
| file | File handle ID of a opened file |
Referenced by Debug::ClearLogs(), PluginRecipesManagerBase::GenerateHumanReadableRecipeList(), GetControlMappingInfo(), UIScriptedMenu::GetControlMappingInfo(), JsonFileLoader< Class T >::JsonLoadFile(), JsonFileLoader< Class T >::JsonSaveFile(), PluginBase::LoadFile(), JsonFileLoader< Class T >::LoadFile(), ScriptConsoleOutputTab::ReloadOutput(), PluginBase::SaveFile(), JsonFileLoader< Class T >::SaveFile(), and Debug::SaveLog().
| proto native void CloseFindFile | ( | FindFileHandle | handle | ) |
Referenced by ScriptedWidgetEventHandler::InitVideoLoading().
copy file. destName must be "$profile:" or "$saves:" location
Referenced by PluginBase::FileDuplicate().
delete file. Works only on "$profile:" and "$saves:" locations
Referenced by PluginBase::FileDelete().
| proto native void EndParse | ( | ParseHandle | file | ) |
| proto int FGets | ( | FileHandle | file, |
| string | var ) |
Get line from file, every next call of this function returns next line.
| file | File handle ID of a opened file |
| var | Value to write |
Referenced by GetControlMappingInfo(), UIScriptedMenu::GetControlMappingInfo(), JsonFileLoader< Class T >::JsonLoadFile(), PluginBase::LoadFile(), JsonFileLoader< Class T >::LoadFile(), and ScriptConsoleOutputTab::ReloadOutput().
Check existence of file.
Referenced by Debug::ClearLogs(), EffectAreaLoader::CreateZones(), UndergroundAreaLoader::GetData(), UIScriptedMenu::GetData(), JsonMissionLoaderData::GetData(), PluginConfigHandler::GetFileName(), PluginLocalHistoryBase::GetFileName(), GetFileName(), PluginConfigHandler::GetSceneList(), PluginLocalProfile::GetSceneList(), JsonFileLoader< Class T >::JsonLoadFile(), CfgGameplayHandler::LoadData(), UIScriptedMenu::LoadData(), JsonFileLoader< Class T >::LoadFile(), ParticleList::RegisterParticle(), UIScriptedMenu::SaveData(), PluginBase::SaveFile(), PluginConfigHandler::SceneDataLoad(), and PluginConfigHandler::SceneDuplicate().
| enum FindFileFlags FindFile | ( | string | pattern, |
| out string | fileName, | ||
| out FileAttr | fileAttributes, | ||
| FindFileFlags | flags ) |
| proto void FPrint | ( | FileHandle | file, |
| void | var ) |
Write to file.
| file | File handle ID of a opened file |
| var | Value to write |
Referenced by JsonFileLoader< Class T >::JsonSaveFile(), and JsonFileLoader< Class T >::SaveFile().
| proto void FPrintln | ( | FileHandle | file, |
| void | var ) |
Write to file and add new line.
| file | File handle ID of a opened file |
| var | Value to write |
Referenced by Debug::ClearLogs(), PluginRecipesManagerBase::GenerateHumanReadableRecipeList(), PluginBase::SaveFile(), Debug::SaveLog(), and Canvas::SaveToFile().
Makes a directory.
Referenced by PluginConfigHandler::GetSceneList(), PluginLocalProfile::GetSceneList(), UIScriptedMenu::LoadData(), UIScriptedMenu::SaveData(), and PluginBase::SaveFile().
| proto FileHandle OpenFile | ( | string | name, |
| FileMode | mode ) |
Opens File.
| name | of a file to open, (you can use filesystem prefixes ('$profile','$saves','$mission'). For accessing profile dir use '$profile', e.g. '$profile:myfilename.txt') |
| mode | constants FileMode.WRITE, FileMode.READ or FileMode.APPEND flag can be used |
Referenced by Debug::ClearLogs(), PluginRecipesManagerBase::GenerateHumanReadableRecipeList(), GetControlMappingInfo(), UIScriptedMenu::GetControlMappingInfo(), JsonFileLoader< Class T >::JsonLoadFile(), JsonFileLoader< Class T >::JsonSaveFile(), PluginBase::LoadFile(), JsonFileLoader< Class T >::LoadFile(), ScriptConsoleOutputTab::ReloadOutput(), PluginBase::SaveFile(), JsonFileLoader< Class T >::SaveFile(), Debug::SaveLog(), and Canvas::SaveToFile().
| proto int ParseLine | ( | ParseHandle | tp, |
| int | num, | ||
| string | tokens[] ) |
| proto int ReadFile | ( | FileHandle | file, |
| void | param_array, | ||
| int | length ) |
Reads raw data from file.
| param_array | Receiving array for the data. Valid types are int[] or string |
| length | Length of data |