Exemplo n.º 1
0
 public static PurchasableManipulatorDelegate FromGeneric <T>(PurchasableManipulatorDelegateGeneric <T> manipulator) where T : BaseUI
 {
     return((BaseUI x, ref PurchaseUI.Purchasable[] array) =>
     {
         manipulator((T)x, ref array);
     });
 }
Exemplo n.º 2
0
 public static void RegisterManipulator <T>(PurchasableUIPredicate pred, PurchasableManipulatorDelegateGeneric <T> man) where T : BaseUI
 {
     RegisterManipulator(pred, FromGeneric(man));
 }
Exemplo n.º 3
0
 public static void RegisterManipulator <T>(PurchasableManipulatorDelegateGeneric <T> man) where T : BaseUI
 {
     RegisterManipulator(typeof(T), FromGeneric(man));
 }