Remove unused PersistentDataContainer
It only stores mod's current version which is not particularly exciting. It has nothing to do with persisting furniture in a save file.
This commit is contained in:
parent
3bdef5bc72
commit
8c59d63fa8
|
|
@ -18,8 +18,6 @@ public class HookahPlace : BaseUnityPlugin
|
|||
internal new static ManualLogSource Logger { get; private set; } = null!;
|
||||
internal new static ConfigFile Config { get; private set; } = null!;
|
||||
|
||||
internal static PersistentDataContainer PersistentData { get; private set; } = null!;
|
||||
|
||||
internal static DuskMod Mod { get; private set; } = null!;
|
||||
|
||||
private void Awake()
|
||||
|
|
@ -29,14 +27,6 @@ public class HookahPlace : BaseUnityPlugin
|
|||
|
||||
Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), MyPluginInfo.PLUGIN_GUID);
|
||||
|
||||
// Example Persistent Data Container Usage
|
||||
// You can do anything you want with this DataContainer, there are a few additonal ones under the DawnLib class that pertain to actual save files
|
||||
PersistentData = this.GetPersistentDataContainer();
|
||||
|
||||
// e.g. track the last version the player played with, could be useful if you want do to stuff like setting migration.
|
||||
// if you want to do config migration you should use DawnLib.GetCurrentInstallSave instead.
|
||||
PersistentData.Set(HookahPlaceKeys.LastVersion, MyPluginInfo.PLUGIN_VERSION);
|
||||
|
||||
AssetBundle mainBundle = AssetBundleUtils.LoadBundle(Assembly.GetExecutingAssembly(), "hookahplaceasset");
|
||||
Mod = DuskMod.RegisterMod(this, mainBundle);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue