Build 0.18.4.0

This commit is contained in:
Markus Isberg
2022-05-31 23:13:05 +09:00
parent 077917fa5d
commit 64db1a6a44
175 changed files with 4916 additions and 2393 deletions
@@ -18,6 +18,23 @@ namespace Barotrauma.IO
".bat", ".sh", //shell scripts
}.ToIdentifiers().ToImmutableArray();
public ref struct Skipper
{
public void Dispose()
{
SkipValidationInDebugBuilds = false;
}
}
/// <summary>
/// Skips validation for as long as the returned object remains in scope (remember to use using)
/// </summary>
public static Skipper SkipInDebugBuilds()
{
SkipValidationInDebugBuilds = true;
return new Skipper();
}
/// <summary>
/// When set to true, the game is allowed to modify the vanilla content in debug builds. Has no effect in non-debug builds.
/// </summary>