Barotrauma Client Doc
Barotrauma.VotingInterface Class Reference

Public Member Functions

void Update (float deltaTime)
 
void EndVote (bool passed, int yesVoteFinal, int noVoteFinal)
 
void Remove ()
 

Static Public Member Functions

static VotingInterface CreateSubmarineVotingInterface (Client starter, SubmarineInfo info, VoteType type, bool transferItems, float votingTime)
 
static VotingInterface CreateMoneyTransferVotingInterface (Client starter, Client from, Client to, int amount, float votingTime)
 
static LocalizedString GetMoneyTransferVoteResultMessage (Client from, Client to, int transferAmount, int yesVoteCount, int noVoteCount, bool votePassed)
 

Public Attributes

bool VoteRunning = false
 

Properties

bool TimedOut [get]
 

Detailed Description

Definition at line 8 of file VotingInterface.cs.

Member Function Documentation

◆ CreateMoneyTransferVotingInterface()

static VotingInterface Barotrauma.VotingInterface.CreateMoneyTransferVotingInterface ( Client  starter,
Client  from,
Client  to,
int  amount,
float  votingTime 
)
static

Definition at line 49 of file VotingInterface.cs.

◆ CreateSubmarineVotingInterface()

static VotingInterface Barotrauma.VotingInterface.CreateSubmarineVotingInterface ( Client  starter,
SubmarineInfo  info,
VoteType  type,
bool  transferItems,
float  votingTime 
)
static

Definition at line 32 of file VotingInterface.cs.

◆ EndVote()

void Barotrauma.VotingInterface.EndVote ( bool  passed,
int  yesVoteFinal,
int  noVoteFinal 
)

Definition at line 156 of file VotingInterface.cs.

◆ GetMoneyTransferVoteResultMessage()

static LocalizedString Barotrauma.VotingInterface.GetMoneyTransferVoteResultMessage ( Client  from,
Client  to,
int  transferAmount,
int  yesVoteCount,
int  noVoteCount,
bool  votePassed 
)
static

Definition at line 284 of file VotingInterface.cs.

◆ Remove()

void Barotrauma.VotingInterface.Remove ( )

Definition at line 297 of file VotingInterface.cs.

◆ Update()

void Barotrauma.VotingInterface.Update ( float  deltaTime)

Definition at line 144 of file VotingInterface.cs.

Member Data Documentation

◆ VoteRunning

bool Barotrauma.VotingInterface.VoteRunning = false

Definition at line 10 of file VotingInterface.cs.

Property Documentation

◆ TimedOut

bool Barotrauma.VotingInterface.TimedOut
get

Definition at line 30 of file VotingInterface.cs.