Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VoterComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_VoterComponentClass

Functions

void Vote (EVotingType type, int value)
void RemoveVote (EVotingType type, int value=SCR_VotingBase.DEFAULT_VALUE)
void AbstainVote (EVotingType type, int value=SCR_VotingBase.DEFAULT_VALUE)
bool DidVote (EVotingType type, int value=SCR_VotingBase.DEFAULT_VALUE)
bool HasAbstained (EVotingType type, int value=SCR_VotingBase.DEFAULT_VALUE)
void VoteServer (EVotingType type, int value)
void RemoveVoteServer (EVotingType type, int value)
override void OnPostInit (IEntity owner)
 Editable Mine.

Variables

SCR_VoterComponentClass m_PlayerController

Function Documentation

◆ AbstainVote()

void AbstainVote ( EVotingType type,
int value = SCR_VotingBase.DEFAULT_VALUE )

Player abstained from voting. Eg: Did not vote yes or removes vote yes

Parameters
[in]typeType of the vote
[in]valueVoted value, depends on the type (e.g., for KICK it's player ID)

Definition at line 143 of file SCR_VoterComponent.c.

◆ DidVote()

bool DidVote ( EVotingType type,
int value = SCR_VotingBase.DEFAULT_VALUE )

Check if player did cast the vote.

Parameters
[in]typeType of the vote
[in]valueVoted value, depends on the type (e.g., for KICK it's player ID)
Returns
True if the vote was cast

Definition at line 164 of file SCR_VoterComponent.c.

◆ HasAbstained()

bool HasAbstained ( EVotingType type,
int value = SCR_VotingBase.DEFAULT_VALUE )

Check if player abstained from voting

Parameters
[in]typeType of the vote
[in]valueVoted value, depends on the type (e.g., for KICK it's player ID)
Returns
True if the player abstained

Definition at line 178 of file SCR_VoterComponent.c.

◆ RemoveVote()

void RemoveVote ( EVotingType type,
int value = SCR_VotingBase.DEFAULT_VALUE )

Remove previously cast vote.

Parameters
[in]typeType of the vote
[in]valueVoted value, depends on the type (e.g., for KICK it's player ID)

Definition at line 126 of file SCR_VoterComponent.c.

◆ RemoveVoteServer()

void RemoveVoteServer ( EVotingType type,
int value )
protected

Definition at line 199 of file SCR_VoterComponent.c.

◆ Vote()

void Vote ( EVotingType type,
int value )

Vote!

Parameters
[in]typeType of the vote
[in]valueVoted value, depends on the type (e.g., for KICK it's player ID)

Definition at line 106 of file SCR_VoterComponent.c.

◆ VoteServer()

void VoteServer ( EVotingType type,
int value )
protected

Definition at line 190 of file SCR_VoterComponent.c.

Variable Documentation

◆ m_PlayerController

SCR_VoterComponentClass m_PlayerController