Show / Hide Table of Contents

Class ElectionPoll.CivicAction_StartPoll

Inheritance
System.Object
CivicAction
ElectionPoll.CivicAction_StartPoll
Implements
IValidity
IDescribable
IRPCAuthChecks
ISettlementAssociated
System.ComponentModel.INotifyPropertyChanged
IHasClientControlledContainers
IController
IViewController
IHasUniversalID
Inherited Members
CivicAction.Failed(User)
CivicAction.ElectionStarted(User, Election)
CivicAction.CanEdit(User)
CivicAction.ValidateParamsOnSubmit()
CivicAction.Initialize(Settlement)
CivicAction.IsSameAction(CivicAction)
CivicAction.IsNull()
CivicAction.TableHeader
CivicAction.Settlement
CivicAction.Subject
CivicAction.ContainedElementName
CivicAction.ControllerID
CivicAction.PropertyChanged
Namespace: Eco.Gameplay.Civics.Elections.Internal
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

NotifyOnPerform

Declaration
public override bool NotifyOnPerform { get; }
Property Value
Type Description
System.Boolean
Overrides
CivicAction.NotifyOnPerform

PollOptions

Declaration
public ControllerList<ElectionPoll.PollOption> PollOptions { get; set; }
Property Value
Type Description
ControllerList<ElectionPoll.PollOption>

PollQuestion

Declaration
public string PollQuestion { get; set; }
Property Value
Type Description
System.String

ProcessToUse

Declaration
public ElectionProcess ProcessToUse { get; set; }
Property Value
Type Description
ElectionProcess

Methods

CanExecute(User)

Declaration
public override Result CanExecute(User user)
Parameters
Type Name Description
User user
Returns
Type Description
Result
Overrides
CivicAction.CanExecute(User)

Description()

Declaration
public override LocString Description()
Returns
Type Description
LocString
Overrides
CivicAction.Description()

Perform(User, Election)

Start an election with the given properties.

Declaration
public override Result Perform(User user, Election proposingElection)
Parameters
Type Name Description
User user
Election proposingElection
Returns
Type Description
Result
Overrides
CivicAction.Perform(User, Election)

Implements

IValidity
IDescribable
IRPCAuthChecks
ISettlementAssociated
System.ComponentModel.INotifyPropertyChanged
IHasClientControlledContainers
IController
IViewController
IHasUniversalID

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
ElectionUtils.GetElectionName(CivicAction)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾