Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.Networking.AccountInfo Struct Reference

Public Member Functions

 AccountInfo (AccountId accountId, params AccountId[] otherIds)
 
 AccountInfo (Option< AccountId > accountId, params AccountId[] otherIds)
 
bool Matches (AccountId accountId)
 
override bool Equals (object? obj)
 
override int GetHashCode ()
 

Static Public Member Functions

static bool operator== (AccountInfo a, AccountInfo b)
 
static bool operator!= (AccountInfo a, AccountInfo b)
 

Public Attributes

readonly Option< AccountId > AccountId
 The primary ID for a given user.
 
readonly ImmutableArray< AccountIdOtherMatchingIds
 Other user IDs that this user might be closely tied to, such as the owner of the current copy of Barotrauma.
 

Static Public Attributes

static readonly AccountInfo None = new AccountInfo(Option<AccountId>.None())
 

Properties

bool IsNone [get]
 

Constructor & Destructor Documentation

◆ AccountInfo() [1/2]

Barotrauma.Networking.AccountInfo.AccountInfo ( AccountId accountId,
params AccountId[] otherIds )

◆ AccountInfo() [2/2]

Barotrauma.Networking.AccountInfo.AccountInfo ( Option< AccountId > accountId,
params AccountId[] otherIds )

Member Function Documentation

◆ Equals()

override bool Barotrauma.Networking.AccountInfo.Equals ( object? obj)

◆ GetHashCode()

override int Barotrauma.Networking.AccountInfo.GetHashCode ( )

◆ Matches()

bool Barotrauma.Networking.AccountInfo.Matches ( AccountId accountId)

◆ operator!=()

static bool Barotrauma.Networking.AccountInfo.operator!= ( AccountInfo a,
AccountInfo b )
static

◆ operator==()

static bool Barotrauma.Networking.AccountInfo.operator== ( AccountInfo a,
AccountInfo b )
static

Member Data Documentation

◆ AccountId

readonly Option<AccountId> Barotrauma.Networking.AccountInfo.AccountId

The primary ID for a given user.

◆ None

readonly AccountInfo Barotrauma.Networking.AccountInfo.None = new AccountInfo(Option<AccountId>.None())
static

◆ OtherMatchingIds

readonly ImmutableArray<AccountId> Barotrauma.Networking.AccountInfo.OtherMatchingIds

Other user IDs that this user might be closely tied to, such as the owner of the current copy of Barotrauma.

Property Documentation

◆ IsNone

bool Barotrauma.Networking.AccountInfo.IsNone
get

The documentation for this struct was generated from the following file: