Details

Last Updated
4 years ago
First Uploaded
4 years ago
Downloads
6.1K
Likes
3
Size
8.2KB
Dependency string
crecheng-DSPModSave-1.0.2
Dependants

Categories

Deprecated

DSPModSave

mod存档

源码: Gitee GitHub

提供一个在原存档外的存储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

sourse code: Gitee GitHub

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

  1. Install BepInEx
  2. Then drag DSPModSave.dll into steamapps/common/Dyson Sphere Program/BepInEx/plugins

安装

  1. 先安装 BepInEx框架
  2. 将DSPModSave.dll拖到 steamapps/common/Dyson Sphere Program/BepInEx/plugins文件夹内
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.