コード例 #1
0
 public static PurchasableCreatorDelegate FromGeneric <T>(PurchasableCreatorDelegateGeneric <T> creator) where T : BaseUI
 {
     return(x => creator((T)x));
 }
コード例 #2
0
 public static void RegisterPurchasable <T>(PurchasableUIPredicate pred, PurchasableCreatorDelegateGeneric <T> creator) where T : BaseUI
 {
     RegisterPurchasable(pred, FromGeneric(creator));
 }
コード例 #3
0
 public static void RegisterPurchasable <T>(PurchasableCreatorDelegateGeneric <T> creator) where T : BaseUI
 {
     RegisterPurchasable(typeof(T), FromGeneric(creator));
 }