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