Unstable v0.19.1.0

This commit is contained in:
Juan Pablo Arce
2022-08-19 13:59:08 -03:00
parent 6b55adcdd9
commit 1219615d64
192 changed files with 3875 additions and 2648 deletions
@@ -26,14 +26,14 @@ namespace Barotrauma
}
}
public static partial class ToolBox
static partial class ToolBox
{
static internal class Epoch
internal static class Epoch
{
private static readonly DateTime epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
/// <summary>
/// Returns the current Unix Epoch (Coordinated Universal Time )
/// Returns the current Unix Epoch (Coordinated Universal Time)
/// </summary>
public static int NowUTC
{
@@ -712,5 +712,10 @@ namespace Barotrauma
return e;
}
public static void ThrowIfNull<T>(T o)
{
if (o is null) { throw new ArgumentNullException(); }
}
}
}