GameFiles Class |
Namespace: GeonBit.Managers
public class GameFiles : IManager
The GameFiles type exposes the following members.
Name | Description | |
---|---|---|
DeleteFile |
Delete an existing file.
| |
Draw |
Called every frame during the Draw() process.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
FixedUpdate |
Called every constant X seconds during the Update() phase.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Init game files manager.
| |
ReadFromBinaryFileT |
Reads an object instance from a binary file.
| |
ReadFromFileT |
Reads an object instance from a file.
| |
ReadFromXmlFileT |
Reads an object instance from an XML file.
Object type must have a parameterless constructor. | |
ToGameFilesPath |
Convert path to be under the the game files path (based on GameFilesPath).
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update |
Update manager.
| |
WriteToBinaryFileT |
Writes the given object instance to a binary file.
Object type (and all child types) must be decorated with the [Serializable] attribute. To prevent a variable from being serialized, decorate it with the [NonSerialized] attribute; cannot be applied to properties. | |
WriteToFileT |
Writes the given object instance to a file.
Object type (and all child types) must be decorated with the [Serializable] attribute. To prevent a variable from being serialized, decorate it with the [NonSerialized] attribute; cannot be applied to properties. | |
WriteToXmlFileT |
Writes the given object instance to an XML file.
Only Public properties and variables will be written to the file. These can be any type though, even other classes. If there are public properties/variables that you do not want written to the file, decorate them with the [XmlIgnore] attribute. Object type must have a parameterless constructor. |
Name | Description | |
---|---|---|
GameFilesPath |
Root directory to store game files.
|