Show / Hide Table of Contents

Class UserRunoffVote

Inheritance
System.Object
UserRunoffVote
Namespace: Eco.Gameplay.Civics.Elections
Assembly: Eco.Gameplay.dll
Syntax
public sealed class UserRunoffVote : ValueType

Constructors

UserRunoffVote()

Declaration
public UserRunoffVote()

UserRunoffVote(User, ElectionChoiceID[])

Declaration
public UserRunoffVote(User user, params ElectionChoiceID[] votes)
Parameters
Type Name Description
User user
ElectionChoiceID[] votes

Properties

RankedVotes

Declaration
public ElectionChoiceID[] RankedVotes { get; set; }
Property Value
Type Description
ElectionChoiceID[]

Voter

Declaration
public User Voter { get; }
Property Value
Type Description
User

VoterID

Declaration
public int VoterID { get; }
Property Value
Type Description
System.Int32

Methods

TopChoiceOfRemaining(HashSet<ElectionChoiceID>)

Find the first entry chosen of the remaining options.

Declaration
public ElectionChoiceID TopChoiceOfRemaining(HashSet<ElectionChoiceID> availableOptions)
Parameters
Type Name Description
System.Collections.Generic.HashSet<ElectionChoiceID> availableOptions
Returns
Type Description
ElectionChoiceID

Extension Methods

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