Table of Contents

Class PopupListData<T>

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

Data used to draw a popup list of a specific type.

[Version(4, 3, 0)]
public class PopupListData<T> : PopupListData

Type Parameters

T

The type of the values in the list.

Inheritance
PopupListData<T>
Inherited Members
Extension Methods

Remarks

This class is used to implement property drawers for popup lists. You should generally only have use for this class if you want to implement your own property drawer. See Property Drawers.

This class stores pieces of data that depends on which ValuesRetrievalMethod is used.

ValuesRetrievalMethodUsage
ValueListUse Values to get the list of values.
FuncUse ListRetriever to get the function that can retrieve the values, and call it.
FuncKey Use ValuesRetrieverKey to get the key used to retrieve the values, and get the retriever function from GetValues<T>(string).
Other Subclasses that are not part of the library can return this value if they use a method other than one of the ones above.

Constructors

PopupListData(Func<IEnumerable<T>>)

Initializes a new instance of the PopupListData<T> class stores the given function to retrieve the list of values.

PopupListData(string)

Creates a new instance of PopupListData<T> that stores the list retriever key.

PopupListData(T[])

Creates a new instance of PopupListData<T> that stores the given list of values.

Properties

ListRetriever

Gets the function used to retrieve the list of values for this popup list, if ValuesRetrievalMethod is Func.

Values

Gets the list of values for this popup list, if ValuesRetrievalMethod is ValueList.