public static PurchasableCreatorDelegate FromGeneric <T>(PurchasableCreatorDelegateGeneric <T> creator) where T : BaseUI { return(x => creator((T)x)); }
public static void RegisterPurchasable <T>(PurchasableUIPredicate pred, PurchasableCreatorDelegateGeneric <T> creator) where T : BaseUI { RegisterPurchasable(pred, FromGeneric(creator)); }
public static void RegisterPurchasable <T>(PurchasableCreatorDelegateGeneric <T> creator) where T : BaseUI { RegisterPurchasable(typeof(T), FromGeneric(creator)); }