peelz 08836088fb Refactor hooking API
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
2022-08-09 17:50:00 -04:00
2022-08-09 17:50:00 -04:00
2020-03-04 13:04:10 +01:00
2021-03-05 17:00:56 +02:00
2022-07-04 12:22:35 -03:00
2022-05-07 13:13:09 +03:00
2022-05-14 02:54:30 +03:00
2021-03-05 17:00:56 +02:00
2022-05-06 22:35:47 +03:00
2022-06-11 16:34:49 -03:00
2022-07-14 16:54:36 +03:00
2017-06-04 21:24:36 +03:00
2022-05-13 12:33:08 -03:00

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.

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
No description provided
Readme 569 MiB
Languages
C# 63.2%
C 26.8%
C++ 5.9%
Shell 1.1%
Makefile 0.8%
Other 1.9%