v1.3.0.1 (Epic Store release)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Barotrauma;
|
||||
|
||||
public static class EosStatusExtensions
|
||||
{
|
||||
public static bool IsInitialized(this EosInterface.Core.Status status)
|
||||
=> status is EosInterface.Core.Status.InitializedButOffline or EosInterface.Core.Status.Online;
|
||||
|
||||
internal static bool IsInitialized(
|
||||
[NotNullWhen(returnValue: true)] this EosInterface.Implementation? implementation)
|
||||
=> implementation is { CurrentStatus: var status } && status.IsInitialized();
|
||||
}
|
||||
Reference in New Issue
Block a user