Class ElectionPoll.CivicAction_StartPoll
Inheritance
System.Object
ElectionPoll.CivicAction_StartPoll
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[DoesNotNeedCivicArticle]
public class CivicAction_StartPoll : CivicAction, IValidity, IDescribable, IRPCAuthChecks, ISettlementAssociated, INotifyPropertyChanged, IHasClientControlledContainers, IController, IViewController, IHasUniversalID
Constructors
CivicAction_StartPoll()
Declaration
public CivicAction_StartPoll()
Properties
AllowEarlyEndWithEnoughVotes
Declaration
public bool AllowEarlyEndWithEnoughVotes { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
ElectionTitle
Declaration
public string ElectionTitle { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public override bool NotifyOnPerform { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
PollOptions
Declaration
public ControllerList<ElectionPoll.PollOption> PollOptions { get; set; }
Property Value
PollQuestion
Declaration
public string PollQuestion { get; set; }
Property Value
Type |
Description |
System.String |
|
ProcessToUse
Declaration
public ElectionProcess ProcessToUse { get; set; }
Property Value
Methods
CanExecute(User)
Declaration
public override Result CanExecute(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
Returns
Overrides
Description()
Declaration
public override LocString Description()
Returns
Overrides
Start an election with the given properties.
Declaration
public override Result Perform(User user, Election proposingElection)
Parameters
Returns
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods