- Debugging LuaCsHook compat issues.

This commit is contained in:
MapleWheels
2026-02-02 19:50:41 -05:00
committed by Maplewheels
parent 244c0fbec3
commit 2eb593f461
3 changed files with 22 additions and 1 deletions
@@ -70,8 +70,12 @@ public class PluginManagementService : IAssemblyManagementService
private static readonly SyntaxTree BaseAssemblyImports = CSharpSyntaxTree.ParseText(
new StringBuilder()
.AppendLine("global using LuaCsHook = Barotrauma.LuaCs.Services.Compatibility.ILuaCsHook;")
.AppendLine("using System.Reflection;")
.AppendLine("using Barotrauma;")
.AppendLine("using Barotrauma.LuaCs;")
.AppendLine("using Barotrauma.LuaCs.Services;")
.AppendLine("using Barotrauma.LuaCs.Services.Compatibility;")
.AppendLine("using System.Runtime.CompilerServices;")
.AppendLine("[assembly: IgnoresAccessChecksTo(\"BarotraumaCore\")]")
#if CLIENT