
C# mod加载器,允许使用C# 编写 mod,调用游戏内部的C#接口。
C# mod loader, allow you to run mod with C#, call inner C# api.
黑神话悟空使用USharp作为脚本引擎,很多逻辑使用charp实现,提供接口给UE使用,而一些内部接口不能通过UE c++/lua访问。
这个mod加载器可以加载c#写的mod。C# mod可以调用USharp端提供的api,包括游戏内部的和C#包装的UE引擎的接口,也可以往游戏内部的事件和委托增加回调。
Wukong use USharp as script engine, many logic implements in charp. Some api can only access in C#, not in UE c++.
This mod loader allow you to load mods written in C#. C# mods can call csharp api from b1-managed and Unreal Engine.
使用说明 / Usage
解压到游戏目录
Extra to game folder.
BlackMythWukong/b1/Binaries/Win64/mod的dll需要放在
CSharpLoader/
Data/
Mods/
0Harmony.dll
CSharpManager.bin
CSharpModBase.dll
Mono.Cecil.dll
Mono.Cecil.Pdb.dll
Mono.Cecil.Rocks.dll
b1cs.ini
hid.dll
mod dll should be Mod dll should be placed in
CSharpLoader/Mods/<ModName>/<ModName>.dll
例如 for example
CSharpLoader/Mods/CSharpExample/CSharpExample.dll
如果你安装后游戏打不开,请尝试把hid.dll改名成version.dll
If you can’t open the game after installation, try rename hid.dll to version.dll
配置文件 CSharpLoader/b1cs.ini
Develop: 开启开发模式,可以按ctrl+f5重新加载C# mods
Console: 显示控制台窗口,打印log
Config File CSharpLoader/b1cs.ini
Develop: press ctrl+f5 reload C# mods
Console: show console window to print log
如果你想了解如何用C# 开发黑神话悟空的mod,可以看这里:
If you are interested in develop C# mod.
https://github.com/czastack/B1CSharpLoader/
Hook/Patch等特性仍在研发中。
Hook and Patch is developing.



