![]() |
CotC C# SDK for Unity
v1.4.0.1
Making social games is easy !
|
Represents a key/value system, also known as virtual file system, to be used for game properties. This class is scoped by domain, meaning that you can call .Domain("yourdomain") and perform additional calls that are scoped.
Public Member Functions | |
GameVfs | Domain (string domain) |
Sets the domain affected by this object. You should typically use it this way: gamer.GamerVfs.Domain("private").SetKey(...); More... | |
Promise< Bundle > | GetAll () |
Retrieves all keys from the key/value system for the current domain. More... | |
Promise< Bundle > | GetKey (string key) |
Retrieves an individual key from the key/value system. More... | |
Promise< Bundle > | GetValue (string key=null) |
Retrieves an individual key or all keys from the key/value system. More... | |
Promise< byte[]> | GetBinary (string key) |
Retrieves the binary data of game key from the key/value system. More... | |
GameVfs CotcSdk.GameVfs.Domain | ( | string | domain | ) |
Sets the domain affected by this object. You should typically use it this way: gamer.GamerVfs.Domain("private").SetKey(...);
domain | Domain on which to scope the VFS. Defaults to private if not specified. |
Retrieves all keys from the key/value system for the current domain.
string value = result.Value["key"];
.This method is obsolete, use GetValue instead.
Promise<byte[]> CotcSdk.GameVfs.GetBinary | ( | string | key | ) |
Retrieves the binary data of game key from the key/value system.
key | The name of the key to be fetched. |
Retrieves an individual key from the key/value system.
key | The name of the key to be fetched. |
This method is obsolete, use GetValue instead.
Retrieves an individual key or all keys from the key/value system.
key | The name of the key to be fetched. |