Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
FileReadWrite Class Reference

Detailed Description

Reads and writes the DataManager's data, using SerializedData to format it.

Documentation updated 2/3/2025

Author
Stephen Nuttall

Public Member Functions

 FileReadWrite (string saveFileName)
 Constructor. To create a FileReadWrite object, you have to give it a file name.
 
void WriteData (DataManager dataManager)
 Writes data from the DataManager to a file.
 
SerializedData ReadData ()
 Reads data for the DataManager from a file.
 

Private Attributes

string fileName
 Name of the file to read and write from.
 

Constructor & Destructor Documentation

◆ FileReadWrite()

FileReadWrite.FileReadWrite ( string saveFileName)

Constructor. To create a FileReadWrite object, you have to give it a file name.

Member Function Documentation

◆ ReadData()

SerializedData FileReadWrite.ReadData ( )

Reads data for the DataManager from a file.

◆ WriteData()

void FileReadWrite.WriteData ( DataManager dataManager)

Writes data from the DataManager to a file.

Member Data Documentation

◆ fileName

string FileReadWrite.fileName
private

Name of the file to read and write from.


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