Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
|
Typedefs | |
typedef int[] | ParseHandle |
typedef int[] | FileHandle |
typedef int[] | FindFileHandle |
Enumerations | |
enum | FileMode { READ, WRITE, APPEND } |
enum | FileAttr { DIRECTORY, HIDDEN, READONLY, INVALID } |
enum | FindFileFlags |
Functions | |
proto native ParseHandle | BeginParse (string filename) |
proto int | ParseLine (ParseHandle tp, int num, string tokens[]) |
proto native void | EndParse (ParseHandle file) |
proto bool | FileExist (string name) |
Check existence of file. More... | |
proto FileHandle | OpenFile (string name, FileMode mode) |
Opens File. More... | |
proto int | ReadFile (FileHandle file, void param_array, int length) |
proto void | CloseFile (FileHandle file) |
Close the File. More... | |
proto void | FPrint (FileHandle file, void var) |
Write to file. More... | |
proto void | FPrintln (FileHandle file, void var) |
Write to file and add new line. More... | |
proto int | FGets (FileHandle file, string var) |
Get line from file, every next call of this function returns next line. More... | |
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 native void | CloseFindFile (FindFileHandle handle) |
proto native bool | MakeDirectory (string name) |
Makes a directory. More... | |
proto native bool | DeleteFile (string name) |
delete file. Works only on "$profile:" and "$saves:" locations More... | |
proto native bool | CopyFile (string sourceName, string destName) |
copy file. destName must be "$profile:" or "$saves:" location More... | |
typedef int [] FileHandle |
Definition at line 390 of file ensystem.c.
typedef int [] FindFileHandle |
Definition at line 503 of file ensystem.c.
typedef int [] ParseHandle |
Definition at line 389 of file ensystem.c.
enum FileAttr |
Enumerator | |
---|---|
DIRECTORY | File is directory. |
HIDDEN | File is hidden. |
READONLY | File is read-only. |
INVALID | Invalid file. |
Definition at line 505 of file ensystem.c.
enum FileMode |
Enumerator | |
---|---|
READ | |
WRITE | |
APPEND |
Definition at line 382 of file ensystem.c.
enum FindFileFlags |
Definition at line 513 of file ensystem.c.
proto native ParseHandle BeginParse | ( | string | filename | ) |
proto void CloseFile | ( | FileHandle | file | ) |
proto native void CloseFindFile | ( | FindFileHandle | handle | ) |
copy file. destName must be "$profile:" or "$saves:" location
delete file. Works only on "$profile:" and "$saves:" locations
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 |
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 void FPrint | ( | FileHandle | file, |
void | var | ||
) |
proto void FPrintln | ( | FileHandle | file, |
void | var | ||
) |
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 |
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 |