Skip to content

AvocadoVR/LethalDataAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LethalDataAPI

Important

You have to sync data yourself. It doesn't do it automatically. You cannot load save or load data on Awake() in your Plugin.cs File.

How To Use

// This will prevent other mods data to be mixed in with your data.
public static LethalData storage = new LethalData(modName); 

private int exampleVariable

public void SaveData() {
    // Save(string key, T value)
    // The key has to be unique and it dosen't have to be the variable name.
    storage.Save("exampleVariable", exampleVariable);
}

public void LoadData() {
    // Load<Type>(string key)
    exampleVariable = storage.Load<int>("exampleVariable");
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages