Barotrauma Client Doc
AccountId.cs
1 #nullable enable
2 
3 namespace Barotrauma.Networking
4 {
5  abstract class AccountId
6  {
7  public abstract string StringRepresentation { get; }
8 
9  public static Option<AccountId> Parse(string str)
10  => ReflectionUtils.ParseDerived<AccountId, string>(str);
11 
12  public abstract override bool Equals(object? obj);
13 
14  public abstract override int GetHashCode();
15 
16  public override string ToString() => StringRepresentation;
17 
18  public static bool operator ==(AccountId a, AccountId b)
19  => a.Equals(b);
20 
21  public static bool operator !=(AccountId a, AccountId b)
22  => !(a == b);
23  }
24 }
static bool operator==(AccountId a, AccountId b)
abstract string StringRepresentation
Definition: AccountId.cs:7
static bool operator!=(AccountId a, AccountId b)
abstract override bool Equals(object? obj)
abstract override int GetHashCode()
static Option< AccountId > Parse(string str)