Mod Content class to easily save and load data that should persist between sessions. All saved data are strings.
public abstract class ModTowerSaveData : ModContent
Inheritance System.Object ModContent ModTowerSaveData
The associated base tower id of this ModTowerSaveData.
public abstract string TowerBaseId { get; }
Returns whether this ModTowerSaveData should save for the provided tower or not.
public virtual bool ShouldSave(Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
The tower to save/load for
System.Boolean Whether this ModTowerSaveData should save this tower or not.
Saves this ModTowerSaveData using the returned encoded string for the provided tower.
public abstract string Save(Tower tower);
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
The tower getting saved.
System.String The encoded save data.
Loads this ModTowerSaveData from the provided encoded string for the provided tower.
public abstract void Load(string data);
data System.String
The encoded save data.
tower Il2CppAssets.Scripts.Simulation.Towers.Tower
The tower getting loaded.