C# Класс June.LocalStorage.Providers.DefaultLocalStore

Default local storage provider uses PlayerPerfs as persistent store.
Наследование: ILocalStore
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_INDEX string>.Dictionary

Открытые методы

Метод Описание
DefaultLocalStore ( ) : System

Initializes a new instance of the DefaultLocalStorage class.

DeleteAll ( ) : void

Clears all the data.

DeleteKey ( string key ) : void

Deletes the key from storage and INDEX.

GetFloat ( string key ) : float

Gets the float value for the key.

GetInt ( string key ) : int

Gets an integer value for the key.

GetSerializedData ( ) : object>.IDictionary

Gets the serialized data.

GetString ( string key ) : string

Gets the string value for the key.

HasKey ( string key ) : bool

Checks if the key exists.

Initialize ( ) : void

Initialize this instance.

Save ( ) : void

Saves currently modified data.

SetFloat ( string key, float value ) : void

Sets the float value for a key.

SetInt ( string key, int value ) : void

Sets the int value for a key.

SetString ( string key, string value ) : void

Sets the string value for a key.

SetStringWithoutKey ( string key, string value ) : void

Sets the string value for a key without including it in the INDEX.

Защищенные методы

Метод Описание
AddKey ( string key, string type ) : void

Adds a key to the index.

DeSerializeKeys ( ) : void

Deserialize keys from PlayerPerfs and creates a in-memory representation.

RemoveKey ( string key ) : void

Removes a key from the index.

SerializeKeys ( ) : string

Serializes the keys present in the in-memory representation of the index.

Описание методов

AddKey() защищенный Метод

Adds a key to the index.
protected AddKey ( string key, string type ) : void
key string Key.
type string Type.
Результат void

DeSerializeKeys() защищенный Метод

Deserialize keys from PlayerPerfs and creates a in-memory representation.
protected DeSerializeKeys ( ) : void
Результат void

DefaultLocalStore() публичный Метод

Initializes a new instance of the DefaultLocalStorage class.
public DefaultLocalStore ( ) : System
Результат System

DeleteAll() публичный Метод

Clears all the data.
public DeleteAll ( ) : void
Результат void

DeleteKey() публичный Метод

Deletes the key from storage and INDEX.
public DeleteKey ( string key ) : void
key string Key.
Результат void

GetFloat() публичный Метод

Gets the float value for the key.
public GetFloat ( string key ) : float
key string Key.
Результат float

GetInt() публичный Метод

Gets an integer value for the key.
public GetInt ( string key ) : int
key string Key.
Результат int

GetSerializedData() публичный Метод

Gets the serialized data.
public GetSerializedData ( ) : object>.IDictionary
Результат object>.IDictionary

GetString() публичный Метод

Gets the string value for the key.
public GetString ( string key ) : string
key string Key.
Результат string

HasKey() публичный Метод

Checks if the key exists.
public HasKey ( string key ) : bool
key string Key.
Результат bool

Initialize() публичный Метод

Initialize this instance.
public Initialize ( ) : void
Результат void

RemoveKey() защищенный Метод

Removes a key from the index.
protected RemoveKey ( string key ) : void
key string Key.
Результат void

Save() публичный Метод

Saves currently modified data.
public Save ( ) : void
Результат void

SerializeKeys() защищенный Метод

Serializes the keys present in the in-memory representation of the index.
protected SerializeKeys ( ) : string
Результат string

SetFloat() публичный Метод

Sets the float value for a key.
public SetFloat ( string key, float value ) : void
key string Key.
value float Value.
Результат void

SetInt() публичный Метод

Sets the int value for a key.
public SetInt ( string key, int value ) : void
key string Key.
value int Value.
Результат void

SetString() публичный Метод

Sets the string value for a key.
public SetString ( string key, string value ) : void
key string Key.
value string Value.
Результат void

SetStringWithoutKey() публичный Метод

Sets the string value for a key without including it in the INDEX.
public SetStringWithoutKey ( string key, string value ) : void
key string Key.
value string Value.
Результат void

Описание свойств

_INDEX защищенное свойство

In memory representaion of the index.
protected Dictionary _INDEX
Результат string>.Dictionary