![]() |
Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
|
Go to the source code of this file.
Classes | |
| class | SCR_VotingManagerComponentClass |
Typedefs | |
| typedef func | ScriptInvoker_VotingManagerStartMethod |
| typedef ScriptInvokerBase< ScriptInvoker_VotingManagerStartMethod > | ScriptInvoker_VotingManagerStart |
| typedef func | ScriptInvoker_VotingManagerEndMethod |
| typedef ScriptInvokerBase< ScriptInvoker_VotingManagerEndMethod > | ScriptInvoker_VotingManagerEnd |
| typedef func | ScriptInvoker_VotingManagerPlayerMethod |
| typedef ScriptInvokerBase< ScriptInvoker_VotingManagerPlayerMethod > | ScriptInvoker_VotingManagerPlayer |
| typedef func | ScriptInvoker_VotingManagerVoteCountChangedMethod |
| typedef ScriptInvokerBase< ScriptInvoker_VotingManagerVoteCountChangedMethod > | ScriptInvoker_VotingManagerVoteCountChanged |
| typedef ScriptInvokerBase<ScriptInvoker_VotingManagerEndMethod> ScriptInvoker_VotingManagerEnd |
Definition at line 7 of file SCR_VotingManagerComponent.c.
Definition at line 6 of file SCR_VotingManagerComponent.c.
| typedef ScriptInvokerBase<ScriptInvoker_VotingManagerPlayerMethod> ScriptInvoker_VotingManagerPlayer |
Definition at line 11 of file SCR_VotingManagerComponent.c.
Definition at line 10 of file SCR_VotingManagerComponent.c.
| typedef ScriptInvokerBase<ScriptInvoker_VotingManagerStartMethod> ScriptInvoker_VotingManagerStart |
Definition at line 3 of file SCR_VotingManagerComponent.c.
Definition at line 2 of file SCR_VotingManagerComponent.c.
| typedef ScriptInvokerBase<ScriptInvoker_VotingManagerVoteCountChangedMethod> ScriptInvoker_VotingManagerVoteCountChanged |
Definition at line 15 of file SCR_VotingManagerComponent.c.
Definition at line 14 of file SCR_VotingManagerComponent.c.
|
protected |
Local player has abstained from voting eg: VoteRemove was called
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 345 of file SCR_VotingManagerComponent.c.
| SCR_VotingManagerComponentClass SCR_BaseGameModeComponentClass Attribute | ( | desc:"Voting | Templates, |
| please use configs and the VotingManagerComponent prefab for default gamemode voting templates" | ) |
|
protected |
| [in] | type | Type of the vote |
| [in] | startingPlayerID | id of a player who started the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
| [in] | remainingDuration | |
| [in] | currentVoteCount |
Definition at line 810 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 859 of file SCR_VotingManagerComponent.c.
|
protected |
End voting.
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
| [in] | outcome | How should the winner be evaluated |
Definition at line 167 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 743 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 918 of file SCR_VotingManagerComponent.c.
Definition at line 1035 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 790 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 779 of file SCR_VotingManagerComponent.c.
|
protected |
Get all active player vote types (not caring which player is the target) Does not care what player the target is or if it is a referendum or election
| [in] | aboutPlayer | Player True to return votings that are about players, false to return those which are not about players |
| [out] | outVotingTypes | Array to be filled with vote types |
| [in] | onlyTemplates | True to scan all voting templates, not only active votings |
| [in] | onlyAvailable | True to scan only votings which can be available in current situation, evaluated by SCR_VotingBase.IsAvailable(). Note that Vote class specific values such as m_bFactionSpecific in SCR_VotingKick are not properly checked and need a IsVotingAvailable specifically if not checking for templates only |
Definition at line 424 of file SCR_VotingManagerComponent.c.
|
protected |
Get all votings with value defined. Returns only referendums, not elections
| [out] | outVotingTypes | Array to be filled with vote types |
| [out] | outValues | Array to be filled with vote values |
| [in] | onlyTemplates | True to scan all voting templates, not only active votings |
| [in] | onlyAvailable | True to scan only votings which can be available in current situation, evaluated by SCR_VotingBase.IsAvailable(). Note that Vote class specific values such as m_bFactionSpecific in SCR_VotingKick are not properly checked and need a IsVotingAvailable specifically if not checking for templates only |
Definition at line 449 of file SCR_VotingManagerComponent.c.
|
protected |
Get a array of all active votes with the specific voteType
| [in] | type | The type of active vote that needs to be searched |
| [out] | outValues | list of all active vote values of the given type |
| [in] | onlyTemplates | True to scan all voting templates, not only active votings |
| [in] | onlyAvailable | True to scan only votings which can be available in current situation, evaluated by SCR_VotingBase.IsAvailable(). Note that Vote class specific values such as m_bFactionSpecific in SCR_VotingKick are not properly checked and need a IsVotingAvailable specifically if not checking for templates only |
Definition at line 476 of file SCR_VotingManagerComponent.c.
|
protected |
| [in] | type | The type to which to get the delay time |
Definition at line 496 of file SCR_VotingManagerComponent.c.
|
protected |
param[in] type The voting type to get current cooldown for
Definition at line 538 of file SCR_VotingManagerComponent.c.
|
protected |
| [in] | type | The type to which to get the cooldown time |
Definition at line 522 of file SCR_VotingManagerComponent.c.
|
protected |
Get player ID of the host player.
Definition at line 293 of file SCR_VotingManagerComponent.c.
|
protected |
Get local vote for given voting. It is purely informative and does not affect voting outcome
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 683 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called on player when they remove their vote.
Definition at line 282 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called on server when a player removes their vote.
Definition at line 258 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called on player when they remove their vote.
Definition at line 274 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called on server when a player casts a vote.
Definition at line 250 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called everywhere when a player voted or abstained
Definition at line 234 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called on player when they cast a vote.
Definition at line 266 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called everywhere when a voting ends (e.g., time runs out, number of votes reaches threshold, or the player about whom the voting was disconnects).
Definition at line 242 of file SCR_VotingManagerComponent.c.
|
protected |
Get event called everywhere when a new voting is created.
Definition at line 226 of file SCR_VotingManagerComponent.c.
|
protected |
Get value cast by given player.
| [in] | playerID | Player who cast the vote |
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 180 of file SCR_VotingManagerComponent.c.
|
protected |
|
protected |
Definition at line 554 of file SCR_VotingManagerComponent.c.
|
protected |
Get name of the value.
| [in] | type | Type of the vote |
| [in] | value | Value |
Definition at line 581 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 717 of file SCR_VotingManagerComponent.c.
|
protected |
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 707 of file SCR_VotingManagerComponent.c.
|
protected |
Returns the id of the player who started the vote
| [in] | type | Type of the vote |
| [in] | value | Value of the vote return playerId of the author |
Definition at line 214 of file SCR_VotingManagerComponent.c.
|
protected |
Get the amount of players needed
| [in] | type | Type of the vote |
| [in] | value | Value of the vote |
| [out] | currentVotes | Current votes the vote has |
| [out] | votesRequired | Votes required to be successfull return True if successfully obtained the requirement data |
Definition at line 197 of file SCR_VotingManagerComponent.c.
|
protected |
Get UI representation of given voting.
| [in] | type | Type of the vote |
Definition at line 567 of file SCR_VotingManagerComponent.c.
|
protected |
Get all votings about given player. Returns only referendums, not elections e.g., vote to KICK a player is a referendum, but vote to make him/her an ADMIN is election in which multiple players can compete, therefore it's not a vote about the player)
| [in] | playerID | Player ID |
| [out] | outVotingTypes | Array to be filled with vote types |
| [in] | onlyTemplates | True to scan all voting templates, not only active votings |
| [in] | onlyAvailable | True to scan only votings which can be available in current situation, evaluated by SCR_VotingBase.IsAvailable(). Note that Vote class specific values such as m_bFactionSpecific in SCR_VotingKick are not properly checked and need a IsVotingAvailable specifically if not checking for templates only |
Definition at line 396 of file SCR_VotingManagerComponent.c.
|
protected |
If local player has abstained from voting eg: VoteRemove was called
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 362 of file SCR_VotingManagerComponent.c.
|
protected |
Check if local vote was cast. It is purely informative and does not affect voting outcome
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 698 of file SCR_VotingManagerComponent.c.
|
protected |
Check if a voting with given params is currently in effect.
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 321 of file SCR_VotingManagerComponent.c.
|
protected |
Check if there is a vote of certain type about given player. e.g., is there a vote about player being kicked?
| [in] | playerID | Player ID |
| [in] | type | Type of the vote |
Definition at line 332 of file SCR_VotingManagerComponent.c.
|
protected |
Check if a voting is available in the current world.
| [in] | type | Type of the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 306 of file SCR_VotingManagerComponent.c.
|
protected |
Print out information about all ongoing voting instances.
Definition at line 728 of file SCR_VotingManagerComponent.c.
|
protected |
Called after a player is connected. Server-only.
| [in] | playerId | PlayerId of connected player. |
| [in] | playerId |
Definition at line 927 of file SCR_VotingManagerComponent.c.
|
protected |
Called after a player is disconnected.
| [in] | playerId | PlayerId of disconnected player. |
| [in] | cause | Reason player disconnected |
| [in] | timeout | Timeout for when players are allowed to connect again. -1 means Ban without an assigned timeout |
What happens when a player disconnects.
| [in] | playerID | is a unique player identifier that defines which player has disconnected. |
| [in] | cause | |
| [in] | timeout |
Definition at line 965 of file SCR_VotingManagerComponent.c.
|
protected |
Called before the vote is cased locally to make sure the cooldowns are set if the vote was initiated by the player
| [in] | type | Type of the vote |
| [in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 594 of file SCR_VotingManagerComponent.c.
|
protected |
Remove previously cast vote. To be called from SCR_VoterComponent! Do not call from elsewhere unless you want to subvert democracy!
| [in] | playerID | Player who cast the vote |
| [in] | type | Type of the vote |
| [in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 115 of file SCR_VotingManagerComponent.c.
|
protected |
Remove local vote for given voting. It is purely informative and does not affect voting outcome To be called from SCR_VoterComponent!
| [in] | type | Type of the vote |
| [in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 655 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 132 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 1008 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 985 of file SCR_VotingManagerComponent.c.
|
protected |
| [in] | src | |
| [in] | ent | |
| [in] | parent |
Definition at line 1083 of file SCR_VotingManagerComponent.c.
| void ScriptInvoker_VotingManagerEndMethod | ( | EVotingType | type, |
| int | value, | ||
| int | winner ) |
| void ScriptInvoker_VotingManagerPlayerMethod | ( | EVotingType | type, |
| int | value, | ||
| int | playerID ) |
| void ScriptInvoker_VotingManagerStartMethod | ( | EVotingType | type, |
| int | value ) |
| void ScriptInvoker_VotingManagerVoteCountChangedMethod | ( | EVotingType | type, |
| int | value, | ||
| int | voteCount ) |
|
protected |
Start voting.
| [in] | type | Type of the vote |
| [in] | startingPlayerID | id of a player who started the vote |
| [in] | value | Target value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 148 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 898 of file SCR_VotingManagerComponent.c.
|
protected |
Vote! If the voting does not exist yet, start it. To be called from SCR_VoterComponent! Do not call from elsewhere unless you want to subvert democracy!
| [in] | playerID | Player who cast the vote |
| [in] | type | Type of the vote |
| [in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 71 of file SCR_VotingManagerComponent.c.
|
protected |
Save local vote for given voting. It is purely informative and does not affect voting outcome To be called from SCR_VoterComponent!
| [in] | type | Type of the vote |
| [in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
Definition at line 624 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 33 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 32 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 31 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 28 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 30 of file SCR_VotingManagerComponent.c.
Definition at line 34 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 42 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 39 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 41 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 38 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 40 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 37 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 36 of file SCR_VotingManagerComponent.c.
|
protected |
Definition at line 43 of file SCR_VotingManagerComponent.c.