Barotrauma Client Doc
Barotrauma.Networking.AccountInfo Struct Reference

Inherits Barotrauma.INetSerializableStruct.

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< AccountIdAccountId
 The primary ID for a given user More...
 
readonly AccountId[] OtherMatchingIds
 Other user IDs that this user might be closely tied to, such as the owner of the current copy of Barotrauma More...
 

Static Public Attributes

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

Detailed Description

Definition at line 8 of file AccountInfo.cs.

Constructor & Destructor Documentation

◆ AccountInfo() [1/2]

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

Definition at line 24 of file AccountInfo.cs.

◆ AccountInfo() [2/2]

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

Definition at line 26 of file AccountInfo.cs.

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

Definition at line 15 of file AccountInfo.cs.

◆ None

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

Definition at line 10 of file AccountInfo.cs.

◆ OtherMatchingIds

readonly 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

Definition at line 22 of file AccountInfo.cs.