UVotingInstance¶
#include <VotingInstance.h>
Inherits from UActorComponent, IReplicatedSubobjectInterface
Inherited by UKickVotingInstance
Public Functions¶
| Name | |
|---|---|
| bool | CanHaveMoreThanOneValid() |
| bool | CanPlayerBeParticipant(ATBLPlayerState * Voter) const |
| bool | CanPlayerVote(ATBLPlayerState * Voter, FName VoteOption) const |
| bool | CanVoteOccur(ATBLPlayerController * InstigatingControlle, FName VoteOption) const |
| ATBLPlayerState * | GetInstigator() const |
| virtual void | [[GetLifetimeReplicatedProps]](TArray< FLifetimeProperty > & OutLifetimeProps) const override |
| int32 | GetNumVotesForOption(FName VoteOption) |
| int32 | GetNumberOfVotes() |
| FName | GetPlayerVote(ATBLPlayerState * Voter) const |
| float | GetStartTime() const |
| float | GetTimeLeft() |
| int32 | GetVotesNeededToPass() |
| bool | IsValidForVoter(ATBLPlayerState * Voter) |
| UVotingInstance() |
Protected Functions¶
| Name | |
|---|---|
| FName | GetCurrentWinningOption() |
| bool | GetIsVoteFinished() |
| TArray< FVotingOption > | GetVoteOptions() |
| void | OnRep_VoteOptions() |
Public Attributes¶
| Name | |
|---|---|
| FReplicated_ATBLPayerState | InstigatorPlayer |
| FAfterVoteTimerSignature | OnAfterVoteTimerFinished |
| FVoteConcludedSignature | OnVoteConcluded |
| FVotesReplicated | OnVotesReplicated |
| FReplicated_Float | StartTime |
Protected Attributes¶
| Name | |
|---|---|
| float | AfterVoteWaitTime |
| FReplicated_FName | CurrentWinningOption |
| float | MinimumVoteTime |
| FReplicatedArray_FVotingOption | VoteOptions |
| float | VoteTime |
| FReplicated_UInt8 | bIsVoteFinished |
| bool | bVotesHaveMinimumTime |
Updated on 2025-01-21 at 09:02:25 +0100