|
Barotrauma Server Doc
|
Classes | |
| interface | IVote |
| class | SubmarineVote |
| class | TransferVote |
Public Types | |
| enum class | VoteState { None = 0 , Started = 1 , Running = 2 , Passed = 3 , Failed = 4 } |
Public Member Functions | |
| void | StopSubmarineVote (bool passed) |
| void | StopMoneyTransferVote (bool passed) |
| void | StopActiveVote (bool passed) |
| void | StartTransferVote (Client starter, Client from, int transferAmount, Client to) |
| void | Update (float deltaTime) |
| void | ServerRead (IReadMessage inc, Client sender, DoSProtection dosProtection) |
| void | ServerWrite (IWriteMessage msg) |
Static Public Member Functions | |
| static T | HighestVoted< T > (VoteType voteType, IEnumerable< Client > voters) |
| static T | HighestVoted< T > (VoteType voteType, IEnumerable< Client > voters, out int voteCount) |
| static void | ResetVotes (IEnumerable< Client > connectedClients, bool resetKickVotes) |
Static Public Attributes | |
| static IVote | ActiveVote |
Protected Member Functions | |
| void | RegisterRejectedVote (IVote vote) |
Definition at line 6 of file BarotraumaShared/SharedSource/Networking/Voting.cs.
|
strong |
| Enumerator | |
|---|---|
| None | |
| Started | |
| Running | |
| Passed | |
| Failed | |
Definition at line 8 of file BarotraumaShared/SharedSource/Networking/Voting.cs.
|
static |
Definition at line 31 of file BarotraumaShared/SharedSource/Networking/Voting.cs.
|
static |
Definition at line 36 of file BarotraumaShared/SharedSource/Networking/Voting.cs.
|
protected |
Definition at line 188 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
|
static |
Definition at line 224 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
| void Barotrauma.Voting.ServerRead | ( | IReadMessage | inc, |
| Client | sender, | ||
| DoSProtection | dosProtection | ||
| ) |
Definition at line 232 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
| void Barotrauma.Voting.ServerWrite | ( | IWriteMessage | msg | ) |
Definition at line 370 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
| void Barotrauma.Voting.StartTransferVote | ( | Client | starter, |
| Client | from, | ||
| int | transferAmount, | ||
| Client | to | ||
| ) |
Definition at line 149 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
| void Barotrauma.Voting.StopActiveVote | ( | bool | passed | ) |
Definition at line 131 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
| void Barotrauma.Voting.StopMoneyTransferVote | ( | bool | passed | ) |
Definition at line 125 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
| void Barotrauma.Voting.StopSubmarineVote | ( | bool | passed | ) |
Definition at line 119 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
| void Barotrauma.Voting.Update | ( | float | deltaTime | ) |
Definition at line 196 of file BarotraumaServer/ServerSource/Networking/Voting.cs.
|
static |
Definition at line 100 of file BarotraumaServer/ServerSource/Networking/Voting.cs.