fb6c335f0f180239ce860ba027e94c80573c201f
LuaUserData.CreateUserDataOfType.
Converts a Lua value to a desired CLR type and wraps it in a userdata to avoid automatic conversions. Example: a Lua script needs to pass a List`1 to a CLR method expecting System.Object, MoonSharp gets in the way by converting the List`1 to a MoonSharp.Interpreter.Table and breaking everything. Wrapping the value in a userdata preserves the original type during conversions.
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%