Unstable 1.2.1.0

This commit is contained in:
Markus Isberg
2023-11-10 17:45:19 +02:00
parent 2ea58c58a7
commit 8a2e2ea0ae
268 changed files with 4076 additions and 1843 deletions
@@ -14,6 +14,16 @@ namespace Barotrauma.Networking
public readonly string Reason;
public Option<SerializableDateTime> ExpirationTime;
public readonly UInt32 UniqueIdentifier;
public bool MatchesClient(Client client)
{
if (client == null) { return false; }
if (AddressOrAccountId.TryGet(out AccountId bannedAccountId) && client.AccountId.TryUnwrap(out AccountId? accountId))
{
return bannedAccountId.Equals(accountId);
}
return false;
}
}
partial class BanList