08836088fb4df84a67115854adeddb57ef41213a
This completely changes how method patching works under the hood. Unlike
the previous API (`Hook.HookMethod`), the new API (`Hook.Patch`)
generates a Harmony patch method at runtime, using IL generation.
This fixes methods with ByRef (out/ref) parameters getting silently corrupted
due to the ByRef semantics being lost when passed through the `object[] __args`
parameter.
This new API also makes it possible to:
- modify parameters (including ByRef params)
- change the return value to `null` (old API would use `return nil`
for Harmony control flow)
- prevent execution of the original method (and other harmony
patches), independently of modifying the return value
LuaForBarotrauma
This is a Barotrauma modification that adds Lua modding support.
Online Documentation: https://evilfactory.github.io/LuaCsForBarotrauma
VS Code Documentation: https://gitee.com/zhurengong/btlua-docs
Discord: https://discord.gg/f9zvNNuxu9
This project uses a forked version of Moonsharp: https://github.com/evilfactory/moonsharp
Barotrauma
Copyright © FakeFish Ltd 2017-2022
Before downloading the source code, please read the EULA.
If you have a question or an issue to report, please check our Contribution Guideline.
If you're interested in working on the code, either to develop mods or to contribute something to the repository, you will also find instructions in the Contribution Guideline.
Links:
Official Website: www.barotraumagame.com
Steam Forums: https://steamcommunity.com/app/602960/discussions/
Discord: https://discordapp.com/invite/undertow
Wiki: https://barotraumagame.com/wiki/Main_Page
Prerequisities:
Windows
- Visual Studio with C# 8.0 support (VS 2019 or later recommended)
Linux
macOS
Description
Languages
C#
63.2%
C
26.8%
C++
5.9%
Shell
1.1%
Makefile
0.8%
Other
1.9%