Click or drag to resize
GameFiles Class
Provide easier access to game files.
Inheritance Hierarchy
SystemObject
  GeonBit.ManagersGameFiles

Namespace:  GeonBit.Managers
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class GameFiles : IManager

The GameFiles type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInstance
Get application utils instance.
Top
Methods
  NameDescription
Public methodDeleteFile
Delete an existing file.
Public methodDraw
Called every frame during the Draw() process.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFixedUpdate
Called every constant X seconds during the Update() phase.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Init game files manager.
Public methodReadFromBinaryFileT
Reads an object instance from a binary file.
Public methodReadFromFileT
Reads an object instance from a file.
Public methodReadFromXmlFileT
Reads an object instance from an XML file.

Object type must have a parameterless constructor.

Public methodToGameFilesPath
Convert path to be under the the game files path (based on GameFilesPath).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Update manager.
Public methodWriteToBinaryFileT
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.

Public methodWriteToFileT
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.

Public methodWriteToXmlFileT
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.

Top
Fields
  NameDescription
Public fieldGameFilesPath
Root directory to store game files.
Top
See Also