Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Data Structures | |
class | SCR_VotingBase |
class | SCR_VotingReferendum |
Functions | |
SCR_VotingReferendum SCR_VotingBase | BaseContainerProps () |
protected float | GetRatio () |
override void | SetVote (int playerID, int value=DEFAULT_VALUE) |
override bool | RemoveVote (int playerID) |
override bool | RemoveValue (int value) |
override bool | IsMatching (EVotingType type, int value=DEFAULT_VALUE) |
override bool | Evaluate (out EVotingOutcome outcome) |
override int | GetWinner () |
override int | GetPlayerVote (int playerID) |
override int | GetValue () |
override void | Log () |
override void | InitFromTemplate (SCR_VotingBase template, int value, float remainingDuration) |
SCR_VotingReferendum SCR_VotingBase | SCR_BaseContainerCustomTitleEnum (EVotingType, "m_Type") |
Variables | |
protected ref set< int > | m_aPlayerIDs = new set<int>() |
protected int | m_iValue |
SCR_VotingReferendum SCR_VotingBase BaseContainerProps | ( | ) |
Election of specific type. Once it starts, players can vote for multiple values. The voting ends when proportion of votes for single value is larger than threshold, or if time expires. If the vote had enough participation, the value with the most votes wins, otherwise the vote fails.
override bool BaseContainerProps::Evaluate | ( | out EVotingOutcome | outcome | ) |
Definition at line 45 of file SCR_VotingBase.c.
Definition at line 60 of file SCR_VotingBase.c.
protected float BaseContainerProps::GetRatio | ( | ) |
Definition at line 6 of file SCR_VotingBase.c.
override int BaseContainerProps::GetValue | ( | ) |
Definition at line 69 of file SCR_VotingBase.c.
override int BaseContainerProps::GetWinner | ( | ) |
Definition at line 51 of file SCR_VotingBase.c.
override void BaseContainerProps::InitFromTemplate | ( | SCR_VotingBase | template, |
int | value, | ||
float | remainingDuration | ||
) |
Definition at line 85 of file SCR_VotingBase.c.
override bool BaseContainerProps::IsMatching | ( | EVotingType | type, |
int | value = DEFAULT_VALUE |
||
) |
Definition at line 39 of file SCR_VotingBase.c.
override void BaseContainerProps::Log | ( | ) |
Definition at line 75 of file SCR_VotingBase.c.
override bool BaseContainerProps::RemoveValue | ( | int | value | ) |
Definition at line 33 of file SCR_VotingBase.c.
override bool BaseContainerProps::RemoveVote | ( | int | playerID | ) |
Definition at line 18 of file SCR_VotingBase.c.
Definition at line 441 of file SCR_VotingBase.c.
Definition at line 12 of file SCR_VotingBase.c.
Definition at line 2 of file SCR_VotingBase.c.
protected int m_iValue |
Definition at line 3 of file SCR_VotingBase.c.