![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Static Protected Attributes | |
| static const int | DEFAULT_VALUE = -1 |
| static const int | ALTERNATIVE_VALUE = -2 |
| Value of the vote, that is used when vote ends in an alternative solution. | |
Base class for voting types. Do not expose objects of this class outside of SCR_VotingManagerComponent! Other systems should always go through the manager.
Definition at line 5 of file SCR_VotingBase.c.
A player has voted to approve (server only)
| [in] | playerID | Id of player who voted |
Definition at line 66 of file SCR_VotingBase.c.
Check if notification can be shown for this voting
| [in] | value | Voting value |
Definition at line 206 of file SCR_VotingBase.c.
|
inlineprotected |
Evaluate if the voting can end.
| [out] | outcome | Outcome of the vote (used only when returned value is true) |
Definition at line 215 of file SCR_VotingBase.c.
Definition at line 424 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 359 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 352 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 136 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 108 of file SCR_VotingBase.c.
|
inlineprotected |
|
inlineprotected |
Definition at line 115 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 153 of file SCR_VotingBase.c.
|
inlineprotected |
Get local vote. It is purely informative and does not affect voting outcome!
Definition at line 345 of file SCR_VotingBase.c.
|
inlineprotected |
Get total player count of players that are valid to vote for the issue
Definition at line 400 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 311 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 122 of file SCR_VotingBase.c.
|
inlineprotected |
|
inlineprotected |
Get voting value. Applicable only if the voting targets specific value, e.g., is referendum about certain outcome.
Definition at line 297 of file SCR_VotingBase.c.
Get name of the value.
| [in] | value |
Definition at line 277 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 129 of file SCR_VotingBase.c.
|
inlineprotected |
Get total players needed to make sure the vote is successfull
Definition at line 408 of file SCR_VotingBase.c.
|
inlineprotected |
|
inlineprotected |
Definition at line 143 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 168 of file SCR_VotingBase.c.
|
inlineprotected |
Initialise voting from given template.
| [in] | template | Source template |
| [in] | startingPlayerID | id of a player who started the vote |
| [in] | value | Target value |
| [in] | remainingDuration | Remaining time until the voting ends in seconds (-1 to use default) |
Definition at line 378 of file SCR_VotingBase.c.
Check if the voting is available in the current world.
| [in] | value | Potential voting value |
| [in] | isOngoing | True if the voting was already initiated |
Definition at line 257 of file SCR_VotingBase.c.
|
protected |
Check if the voting is matching given params.
| [in] | type | Voting type |
| [in] | value | Voting value |
|
inlineprotected |
Check if the voting is about player IDs.
Definition at line 319 of file SCR_VotingBase.c.
|
protected |
|
protected |
Event called when the voting ends.
| [in] | value | Voting value |
| [in] | winner | Winning value |
A player has voted to remove or abstain (server only)
| [in] | playerID | Id of player who voted to remove or abstain |
Definition at line 84 of file SCR_VotingBase.c.
Remove all votes for given value.
| [in] | value | Value |
Remove vote of given player.
| [in] | playerID | Player ID |
|
inlineprotected |
Remove local vote. It is purely informative and does not affect voting outcome!
Definition at line 336 of file SCR_VotingBase.c.
|
inlineprotected |
Set the current amount of votes this vote has
| [in] | currentVoteCount | New current vote amount |
Definition at line 101 of file SCR_VotingBase.c.
|
inlineprotected |
Set Has initiated voting locally at least once to true.
Definition at line 175 of file SCR_VotingBase.c.
|
inlineprotected |
Set the time stamp for cooldowns for this voting param[in] New Time stamp to set
Definition at line 161 of file SCR_VotingBase.c.
|
protected |
Set vote of given player.
| [in] | playerID | Player ID |
| [in] | value | Cast vote |
|
inlineprotected |
Save local vote. It's purely informative, does not affect voting outcome!
| [in] | value | Voted value |
Definition at line 328 of file SCR_VotingBase.c.
|
inlineprotected |
Definition at line 230 of file SCR_VotingBase.c.
|
inlineprotected |
Periodically update the voting.
| [in] | timeSlice | Time since the last update |
Definition at line 367 of file SCR_VotingBase.c.
|
staticprotected |
Value of the vote, that is used when vote ends in an alternative solution.
Definition at line 51 of file SCR_VotingBase.c.
|
staticprotected |
Definition at line 49 of file SCR_VotingBase.c.
|
protected |
Definition at line 60 of file SCR_VotingBase.c.
|
protected |
Definition at line 44 of file SCR_VotingBase.c.
|
protected |
Definition at line 41 of file SCR_VotingBase.c.
|
protected |
Definition at line 14 of file SCR_VotingBase.c.
|
protected |
Definition at line 47 of file SCR_VotingBase.c.
|
protected |
Definition at line 11 of file SCR_VotingBase.c.
|
protected |
Definition at line 17 of file SCR_VotingBase.c.
|
protected |
Definition at line 20 of file SCR_VotingBase.c.
|
protected |
Definition at line 46 of file SCR_VotingBase.c.
|
protected |
Definition at line 57 of file SCR_VotingBase.c.
|
protected |
Definition at line 32 of file SCR_VotingBase.c.
|
protected |
Definition at line 54 of file SCR_VotingBase.c.
|
protected |
Definition at line 23 of file SCR_VotingBase.c.
|
protected |
Definition at line 26 of file SCR_VotingBase.c.
|
protected |
Definition at line 29 of file SCR_VotingBase.c.
|
protected |
Definition at line 35 of file SCR_VotingBase.c.
|
protected |
Definition at line 53 of file SCR_VotingBase.c.
|
protected |
Definition at line 38 of file SCR_VotingBase.c.
|
protected |
Definition at line 8 of file SCR_VotingBase.c.