DayZ 1.26
DayZ Explorer by KGB
|
Определения типов | |
typedef int[] | ParseHandle |
typedef int[] | FileHandle |
typedef int[] | FindFileHandle |
Перечисления | |
enum | FileMode { READ , WRITE , APPEND } |
enum | FileAttr { DIRECTORY , HIDDEN , READONLY , INVALID } |
enum | FindFileFlags |
typedef int [] FileHandle |
proto native ParseHandle BeginParse | ( | string | filename | ) |
proto void CloseFile | ( | FileHandle | file | ) |
Close the File.
file | File handle ID of a opened file |
Используется в 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(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange() и SakhalData::WeatherOnBeforeChange().
proto native void CloseFindFile | ( | FindFileHandle | handle | ) |
Используется в ScriptedWidgetEventHandler::InitVideoLoading().
copy file. destName must be "$profile:" or "$saves:" location
Используется в PluginBase::FileDuplicate().
delete file. Works only on "$profile:" and "$saves:" locations
Используется в 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 |
Используется в GetControlMappingInfo(), UIScriptedMenu::GetControlMappingInfo(), JsonFileLoader< Class T >::JsonLoadFile(), PluginBase::LoadFile(), JsonFileLoader< Class T >::LoadFile() и ScriptConsoleOutputTab::ReloadOutput().
Check existence of file.
Используется в 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(), CfgPlayerRestrictedAreaHandler::LoadData(), UIScriptedMenu::LoadData(), JsonFileLoader< Class T >::LoadFile(), ParticleList::RegisterParticle(), UIScriptedMenu::SaveData(), PluginBase::SaveFile(), PluginConfigHandler::SceneDataLoad() и 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 |
Используется в JsonFileLoader< Class T >::JsonSaveFile() и 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 |
Используется в Debug::ClearLogs(), PluginRecipesManagerBase::GenerateHumanReadableRecipeList(), PluginBase::SaveFile(), Debug::SaveLog(), Canvas::SaveToFile(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange() и SakhalData::WeatherOnBeforeChange().
Makes a directory.
Используется в PluginConfigHandler::GetSceneList(), PluginLocalProfile::GetSceneList(), UIScriptedMenu::LoadData(), UIScriptedMenu::SaveData() и 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 |
Используется в 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(), Canvas::SaveToFile(), WorldData::WeatherOnBeforeChange(), EnochData::WeatherOnBeforeChange() и SakhalData::WeatherOnBeforeChange().
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 |