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
GamePickerList
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
Assembly: Eco.Gameplay.dll
Syntax
public class GamePickerList : UnserializedEntry, INotifyPropertyChanged, ILinkable, INamed, IController, IViewController, IHasUniversalID, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions, IPostCloneMethodContainer, ICloneable
Constructors
GamePickerList()
Declaration
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
InternalDescription
Declaration
public string InternalDescription { get; set; }
Property Value
Type |
Description |
System.String |
|
MarkedUpName
Declaration
public LocString MarkedUpName { get; }
Property Value
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
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
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
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
GetTypes()
Declaration
public IEnumerable<Type> GetTypes()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Type> |
|
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 Parameters
NewEntry(INetObject, Object)
Declaration
protected virtual void NewEntry(INetObject arg1, object o)
Parameters
Type |
Name |
Description |
INetObject |
arg1 |
|
System.Object |
o |
|
OnCloned()
Declaration
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
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
System.ICloneable
Extension Methods