30 LocalStorage(
string filename,
const string&in sectionname =
"common",
const string&in resource_group_name =
"Cache");
40 string get(
string key);
50 void set(
string key,
const string value);
60 void set(
string key,
float value);
64 void set(
string key,
const vector3 value);
68 void set(
string key,
const radian value);
72 void set(
string key,
const degree value);
80 void set(
string key,
const bool value);
81 void setBool(
string key,
const bool value);
85 void set(
string key,
int);
111 void delete(
string key);
Binding of RoR::LocalStorage; A class that allows your script to store data persistently.
void setInteger(string key, int)
void setVector3(string key, const vector3 value)
void set(string key, const radian value)
LocalStorage(string filename, const string &in sectionname="common", const string &in resource_group_name="Cache")
The constructor for the class.
int getInteger(string key)
void setBool(string key, const bool value)
void setFloat(string key, float value)
void setString(string key, const string value)
This sets a key.
void set(string key, const degree value)
radian getRadian(string key)
void changeSection(const string section)
Changes the default section.
void set(string key, const quaternion value)
bool exists(string key) const
Check if certain key exists.
void set(string key, const vector3 value)
void setQuaternion(string key, const quaternion value)
void setRadian(string key, const radian value)
quaternion getQuaternion(string key)
void set(string key, int)
void setDegree(string key, const degree value)
degree getDegree(string key)
void set(string key, float value)
string get(string key)
A getter for string data.
string getString(string key)
bool reload()
This reloads the data from the saved file, overwriting your changes.
float getFloat(string key)
void set(string key, const bool value)
void setInt(string key, int)
vector3 getVector3(string key)
void save()
This saves the data to a file.
void set(string key, const string value)
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.