DayZ 1.24
Loading...
Searching...
No Matches
FileSerializer Class Reference

Serializer API implementation for File IO. See Serializer for more info.
usage: More...

Inheritance diagram for FileSerializer:
[legend]
Collaboration diagram for FileSerializer:
[legend]

Private Member Functions

void FileSerializer ()
 
void ~FileSerializer ()
 
proto native bool Open (string path, FileMode mode=FileMode.READ)
 
proto native bool IsOpen ()
 
proto native void Close ()
 
- Private Member Functions inherited from Serializer
void Serializer ()
 
void ~Serializer ()
 

Detailed Description

Serializer API implementation for File IO. See Serializer for more info.
usage:

void TestSave()
{
string names[3] = {"alpha", "beta", "gama"};
if (file.Open("test.save", FileMode.WRITE))
{
file.Write(10);
file.Write("lalala");
file.Write(name);
file.Close();
}
}
void TestLoad()
{
int intVal;
string stringVal;
string names[3];
if (file.Open("test.save", FileMode.READ))
{
file.Read(intVal);
file.Read(stringVal);
file.Read(names);
file.Close();
}
}
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
Serializer API implementation for File IO. See Serializer for more info. usage:
Definition Serializer.c:104
void FileSerializer()
Definition Serializer.c:105
FileMode
Definition EnSystem.c:383

Definition at line 103 of file Serializer.c.

Constructor & Destructor Documentation

◆ FileSerializer()

void FileSerializer::FileSerializer ( )
inlineprivate

Definition at line 105 of file Serializer.c.

105{}

◆ ~FileSerializer()

void FileSerializer::~FileSerializer ( )
inlineprivate

Definition at line 106 of file Serializer.c.

106{}

Member Function Documentation

◆ Close()

proto native void FileSerializer::Close ( )
private

◆ IsOpen()

proto native bool FileSerializer::IsOpen ( )
private

◆ Open()

proto native bool FileSerializer::Open ( string path,
FileMode mode = FileMode.READ )
private

The documentation for this class was generated from the following file: