|
static SCR_VoterComponent | GetInstance () |
| Get local instance of this component.
|
|
static void | InstantVote () |
| Instantly cast vote to the only ongoing voting.
|
|
static void | InstantRemoveAndAbstainVote () |
| Instantly cast remove vote to the only ongoing voting and will set self to abstaining as well Ignored if number of votings is not exactly 1.
|
|
◆ AbstainVote()
Player abstained from voting.
Eg: Did not vote yes or removes vote yes
- Parameters
-
[in] | type | Type of the vote |
[in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
◆ DidVote()
Check if player did cast the vote.
- Parameters
-
[in] | type | Type of the vote |
[in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
- Returns
- True if the vote was cast
◆ GetInstance()
Get local instance of this component.
- Returns
- Local voter component
◆ HasAbstained()
Check if player abstained from voting.
- Parameters
-
[in] | type | Type of the vote |
[in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
- Returns
- True if the player abstained
◆ InstantRemoveAndAbstainVote()
static void SCR_VoterComponent.InstantRemoveAndAbstainVote |
( |
| ) |
|
|
static |
Instantly cast remove vote to the only ongoing voting and will set self to abstaining as well Ignored if number of votings is not exactly 1.
◆ InstantVote()
static void SCR_VoterComponent.InstantVote |
( |
| ) |
|
|
static |
Instantly cast vote to the only ongoing voting.
Ignored if number of votings is not exactly 1.
◆ OnPostInit()
override void SCR_VoterComponent.OnPostInit |
( |
IEntity |
owner | ) |
|
◆ RemoveVote()
Remove previously cast vote.
- Parameters
-
[in] | type | Type of the vote |
[in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
◆ RemoveVoteServer()
void SCR_VoterComponent.RemoveVoteServer |
( |
EVotingType |
type, |
|
|
int |
value |
|
) |
| |
|
protected |
◆ Vote()
void SCR_VoterComponent.Vote |
( |
EVotingType |
type, |
|
|
int |
value |
|
) |
| |
Vote!
- Parameters
-
[in] | type | Type of the vote |
[in] | value | Voted value, depends on the type (e.g., for KICK it's player ID) |
◆ VoteServer()
void SCR_VoterComponent.VoteServer |
( |
EVotingType |
type, |
|
|
int |
value |
|
) |
| |
|
protected |
◆ m_PlayerController
The documentation for this interface was generated from the following file:
- Game/Components/Voting/SCR_VoterComponent.c