T_MSCLoader_SaveLoad
piotrulos edited this page Apr 7, 2023
·
4 revisions
Save and Load Class for gameobject and custom class
System.Object
MSCLoader.SaveLoad
Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.2.11.286
C#
public class SaveLoad
View Source
The SaveLoad type exposes the following members.
Name | Description | |
---|---|---|
DeleteValue | Delete value from Mods.txt (if exists) | |
DeserializeClass(T) | Deserialize custom class from Unified save system | |
DeserializeSaveFile(T) | Deserialize custom save class to custom file (see example) | |
LoadGameObject | **Obsolete. ** Load position and rotation of single gameobject from file Call this AFTER you load your gameobject | |
ReadValue(T) | Read saved value | |
ReadValueAs2DArray(T) | Read saved value as 2D Array | |
ReadValueAsArray(T) | Read saved value as Array | |
ReadValueAsDictionary(TKey, TValue) | Read saved value as Dictionary | |
ReadValueAsHashSet(T) | Read saved value as HashSet | |
ReadValueAsList(T) | Read saved value as List | |
ReadValueAsQueue(T) | Read saved value as Queue | |
ReadValueAsStack(T) | Read saved value as Stack | |
SaveGameObject | **Obsolete. ** Save position and rotation of single gameobject to file (DO NOT loop this for multiple gameobjects) Call this in OnSave() function | |
SerializeClass(T) | Serialize custom class under custom ID in Unified save system | |
SerializeSaveFile(T) | Serialize custom save class to custom file (see example) Call Only in OnSave() | |
ValueExists | Check if saved value exists in save file. | |
WriteValue(T)(Mod, String, HashSet(T)) | Write HashSet to save file | |
WriteValue(T)(Mod, String, List(T)) | Write List to save file | |
WriteValue(T)(Mod, String, Queue(T)) | Write Queue to save file | |
WriteValue(T)(Mod, String, Stack(T)) | Write Stack to save file | |
WriteValue(T)(Mod, String, T) | Write value to save file | |
WriteValue(T)(Mod, String, T[,]) | Write 2D array to save file | |
WriteValue(T)(Mod, String, T[]) | Write array to save file | |
WriteValue(TKey, TValue)(Mod, String, Dictionary(TKey, TValue)) | Write Dictionary to save file |
- How to install MSCLoader using MSCPatcher
- MSCPatcher explained
- How to install mods
- Official experimental linux support
- Unofficial tutorial for linux (wine/proton)
- Install Visual Studio for MSCLoader
- Install template for Visual Studio
- How to use templates
- Debugging your mods in Visual Studio
- Enable DevMode to help with debugging
- Uploading and creating Self update feature for your mod or reference
- All Playmaker Global Variables and Events
- How to create and use Asset Bundles