Show / Hide Table of Contents

Class GamePickerList

Can store a list of IHasID's or a list of Types. A list that can be used to form UI lists of entries for the user to select from. Use GamePickerListFactory to create new instance for a base type.

Inheritance
System.Object
UnserializedEntry
GamePickerList
GamePickerList<T>
GamePickerListAlias
Implements
System.ComponentModel.INotifyPropertyChanged
ILinkable
INamed
IController
IViewController
IHasUniversalID
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
IPostCloneMethodContainer
System.ICloneable
Inherited Members
UnserializedEntry.Id
UnserializedEntry.idToEntry
UnserializedEntry.All<T>()
UnserializedEntry.GetById(Int32)
UnserializedEntry.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
UnserializedEntry.ControllerID
UnserializedEntry.PropertyChanged
Namespace: Eco.Gameplay.Civics.GameValues
Assembly: Eco.Gameplay.dll
Syntax
public class GamePickerList : UnserializedEntry, INotifyPropertyChanged, ILinkable, INamed, IController, IViewController, IHasUniversalID, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IPostCloneMethodContainer, ICloneable

Constructors

GamePickerList()

Declaration
public GamePickerList()

GamePickerList(Type, String)

Declaration
public GamePickerList(Type baseType, string emptyDesc = null)
Parameters
Type Name Description
System.Type baseType
System.String emptyDesc

Properties

DescriptionList

Declaration
public IEnumerable<string> DescriptionList { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

DisplayEmptyAs

Declaration
protected string DisplayEmptyAs { get; set; }
Property Value
Type Description
System.String

Entries

Declaration
public ControllerHashSet<object> Entries { get; set; }
Property Value
Type Description
ControllerHashSet<System.Object>

InternalDescription

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

MarkedUpName

Declaration
public LocString MarkedUpName { get; }
Property Value
Type Description
LocString

MustDeriveType

Declaration
public virtual Type MustDeriveType { get; set; }
Property Value
Type Description
System.Type

MustDeriveTypeName

Declaration
public virtual string MustDeriveTypeName { get; }
Property Value
Type Description
System.String

Name

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

RequiredTag

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

Subscriptions

Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Type Description
ThreadSafeSubscriptions

Methods

ContainsObj(Object)

Declaration
public bool ContainsObj(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

ContainsType(Type)

Declaration
public bool ContainsType(Type type)
Parameters
Type Name Description
System.Type type
Returns
Type Description
System.Boolean

DescribeEntries(LocString)

Returns a hoverable link with entries inside.

Declaration
public string DescribeEntries(LocString joinText)
Parameters
Type Name Description
LocString joinText
Returns
Type Description
System.String

DoEval(Object, Boolean)

Declaration
public Eval<bool> DoEval(object entry, bool tryAsType = true)
Parameters
Type Name Description
System.Object entry
System.Boolean tryAsType
Returns
Type Description
Eval<System.Boolean>

DoEvalType(IEnumerable<Object>)

Declaration
public Eval<bool> DoEvalType(IEnumerable<object> types)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Object> types
Returns
Type Description
Eval<System.Boolean>

DoEvalType(Object)

Declaration
public Eval<bool> DoEvalType(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
Eval<System.Boolean>

DoEvalTypes(IEnumerable<Object>)

Declaration
public Eval<bool> DoEvalTypes(IEnumerable<object> entries)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Object> entries
Returns
Type Description
Eval<System.Boolean>

Empty()

Declaration
public bool Empty()
Returns
Type Description
System.Boolean

EntriesChanged()

Declaration
protected virtual void EntriesChanged()

GetObjects<T>()

Declaration
public IEnumerable<T> GetObjects<T>()
Returns
Type Description
System.Collections.Generic.IEnumerable<T>
Type Parameters
Name Description
T

GetTypes()

Declaration
public IEnumerable<Type> GetTypes()
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Type>

InlineFoldoutListLoc<T>(String, TooltipOrigin, Int32)

Declaration
public LocString InlineFoldoutListLoc<T>(string itemNounSingular, TooltipOrigin origin, int max = 3)
    where T : ILinkable
Parameters
Type Name Description
System.String itemNounSingular
TooltipOrigin origin
System.Int32 max
Returns
Type Description
LocString
Type Parameters
Name Description
T

NewEntry(INetObject, Object)

Declaration
protected virtual void NewEntry(INetObject arg1, object o)
Parameters
Type Name Description
INetObject arg1
System.Object o

OnCloned()

Declaration
public void OnCloned()

RemovedEntry(INetObject, Object)

Declaration
protected virtual void RemovedEntry(INetObject arg1, object o)
Parameters
Type Name Description
INetObject arg1
System.Object o

SetSelected(Type)

Declaration
public void SetSelected(Type entry)
Parameters
Type Name Description
System.Type entry

UILinkContent()

Declaration
public override LocString UILinkContent()
Returns
Type Description
LocString
Overrides
UnserializedEntry.UILinkContent()

Implements

System.ComponentModel.INotifyPropertyChanged
ILinkable
INamed
IController
IViewController
IHasUniversalID
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions
IPostCloneMethodContainer
System.ICloneable

Extension Methods

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