SaveGame
class SaveGame
Class responsible for saving, loading and deleting variables.
public class SaveGame
— Static Methods (22) —
Name | Description |
---|---|
void saveString(String key, String value) | Save the current value of String with name(key) defined to be "key" argument, and value to be "value" argument. |
String loadString(String key) | Load the current value of String with name(key) defined to be "key" argument. |
void deleteString(String key) | Deletes the current value of String with name(key) defined to be "key" argument. |
void saveFloat(String key, float value) | Save the current value of float with name(key) defined to be "key" argument, and value to be "value" argument. |
float loadFloat(String key) | Load the current value of float with name(key) defined to be "key" argument. |
void deleteFloat(String key) | Deletes the current value of float with name(key) defined to be "key" argument. |
void saveInt(String key, int value) | Save the current value of int with name(key) defined to be "key" argument, and value to be "value" argument. |
int loadInt(String key) | Load the current value of int with name(key) defined to be "key" argument. |
void deleteInt(String key) | Deletes the current value of int with name(key) defined to be "key" argument. |
void saveVector3(String key, Vector3 value) | Save the current value of Vector3 with name(key) defined to be "key" argument, and value to be "value" argument. |
Vector3 loadVector3(String key) | Load the current value of Vector3 with name(key) defined to be "key" argument. |
void deleteVector3(String key) | Deletes the current value of Vector3 with name(key) defined to be "key" argument. |
void saveVector2(String key, Vector2 value) | Save the current value of Vector2 with name(key) defined to be "key" argument, and value to be "value" argument. |
Vector2 loadVector2(String key) | Load the current value of Vector2 with name(key) defined to be "key" argument. |
void deleteVector2(String key) | Deletes the current value of Vector2 with name(key) defined to be "key" argument. |
void saveQuaternion(String key, Quaternion value) | Save the current value of Quaternion with name(key) defined to be "key" argument, and value to be "value" argument. |
Quaternion loadQuaternion(String key) | Load the current value of Quaternion with name(key) defined to be "key" argument. |
void deleteQuaternion(String key) | Deletes the current value of Quaternion with name(key) defined to be "key" argument. |
void saveColor(String key, Color value) | Save the current value of Color with name(key) defined to be "key" argument, and value to be "value" argument. |
Color loadColor(String key) | Load the current value of Color with name(key) defined to be "key" argument. |
void deleteColor(String key) | Deletes the current value of Color with name(key) defined to be "key" argument. |
void deleteAll() | Deletes all current saved values of all variables. |