Click or drag to resize
ConfigStorage Class
Provide a basic persistent storage for configuration and user-preference data. Note: the reason this manager is said to be for config and not for general purpose is because it does not guarantee good performance and it should not be used with too many (= millions) records. In addition, it has a very basic API.
Inheritance Hierarchy
SystemObject
  GeonBit.ManagersConfigStorage

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

The ConfigStorage type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberInstance
Get Storage instance.
Top
Methods
  NameDescription
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 methodGetT
Get config value.
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 Storage manager.
Public methodSet
Set config value.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Called every frame during the Update() phase.
Top
Fields
  NameDescription
Public fieldConfigFolderPath
Path to hold the config storage files, relative to the GameData folder.
Public fieldFilesFormat
Config files format.
Public fieldMaxRecordsInCache
Max records we allow to store in cache.
Public fieldUseKeysHashAsFilename
If true, will use keys hash as filenames. If false, filenames will just be the keys (watch out not to give keys that cannot be a valid filename!).
Top
See Also