Table of Contents

Method RegisterValuesRetriever

Namespace
Gamelogic.Extensions
Assembly
Gamelogic.Extensions.dll

RegisterValuesRetriever<T>(string, Func<IEnumerable<T>>)

Registers a new function to retrieve a list of values of the given type.

public static void RegisterValuesRetriever<T>(string key, Func<IEnumerable<T>> retriever)

Parameters

key string

The key to associate with the values that can be used to get the retriever function.

retriever Func<IEnumerable<T>>

The function that retrieves the list of values.

Type Parameters

T

The type of the values.

Remarks

This is used by the property drawers of the subclasses of PopupListAttribute>, such as StringPopupAttribute and ColorPopupAttribute.