DSPModSave
provide a mod save ---------【mod存档】提供一个原存档之外的mod存档
Last updated | 3 years ago |
Total downloads | 5951 |
Total rating | 3 |
Categories | |
Dependency string | crecheng-DSPModSave-1.0.2 |
Dependants | 4 other packages depend on this package |
This mod requires the following mods to function
README
DSPModSave
mod存档
提供一个在原存档外的存储mod数据的mod存档
如果你是开发者,想要使用
首先,需要应用dll,然后 using crecheng.DSPModSave;
然后在你的插件中基础IModCanSave接口
列如
class MyPlugin : BaseUnityPlugin,IModCanSave
并且实现接口的3个方法
保存数据时调用 void Export(BinaryWriter w);
读取数据时调用 void Import(BinaryReader r);
当加载另一个存档但是没有mod存档时调用 void IntoOtherSave();
Provide a mod archive that stores mod data outside the original archive
If you are a developer and want to use
First, you need to apply the dll, and then using crecheng.DSPModSave;
Then base the IModCanSave interface in your plugin
example:
class MyPlugin: BaseUnityPlugin,IModCanSave
And 3 methods to implement the interface
Called when saving data void Export(BinaryWriter w);
Called when reading data void Import(BinaryReader r);
Called when another archive is loaded but there is no mod archive void IntoOtherSave();
Installation
- Install BepInEx
- Then drag DSPModSave.dll into steamapps/common/Dyson Sphere Program/BepInEx/plugins
安装
- 先安装 BepInEx框架
- 将DSPModSave.dll拖到 steamapps/common/Dyson Sphere Program/BepInEx/plugins文件夹内