29 if (EvaluateEditor(outcome))
32 return super.Evaluate(outcome);
36 override bool IsAvailable(
int value,
bool isOngoing)
42 if (editorDelegateManager)
45 SCR_EditablePlayerDelegateComponent playerEditorDelegate = editorDelegateManager.GetDelegate(value);
46 return playerEditorDelegate && playerEditorDelegate.HasLimitedEditor();
53 override bool CanSendNotification(
int value)
55 if (!Replication.IsRunning())
60 return (votingManager && votingManager.GetHostPlayerID() != value) || (gameMode && gameMode.GetGameMasterTarget() !=
EGameModeEditorTarget.EVERYBODY);
64 override void OnVotingEnd(
int value = DEFAULT_VALUE,
int winner = DEFAULT_VALUE)
66 if (winner == DEFAULT_VALUE)
75 override void InitFromTemplate(
SCR_VotingBase template,
int value,
float remainingDuration)
77 super.InitFromTemplate(
template, value, remainingDuration);
101 return Math.Max(super.GetPlayerCount() - 1, 2);
105 override bool IsAvailable(
int value,
bool isOngoing)
113 if (!votingManager || votingManager.GetHostPlayerID() == value ||
GetGame().GetPlayerManager().HasPlayerRole(value,
EPlayerRole.ADMINISTRATOR))
118 if (!editorDelegateManager)
121 SCR_EditablePlayerDelegateComponent playerEditorDelegate = editorDelegateManager.GetDelegate(value);
122 return playerEditorDelegate && !playerEditorDelegate.HasLimitedEditor();
133 override void OnVotingEnd(
int value = DEFAULT_VALUE,
int winner = DEFAULT_VALUE)
135 if (winner == DEFAULT_VALUE)
154 override bool IsAvailable(
int value,
bool isOngoing)
162 if (!votingManager || votingManager.GetHostPlayerID() == value ||
GetGame().GetPlayerManager().HasPlayerRole(value,
EPlayerRole.ADMINISTRATOR))
167 if (!editorDelegateManager)
170 SCR_EditablePlayerDelegateComponent playerEditorDelegate = editorDelegateManager.GetDelegate(value);
171 return playerEditorDelegate && !playerEditorDelegate.HasLimitedEditor();
175 override void OnVotingEnd(
int value = DEFAULT_VALUE,
int winner = DEFAULT_VALUE)
177 if (winner == DEFAULT_VALUE)