public static void RegisterManipulator(Type t, PurchasableManipulatorDelegate man) { if (!typeof(BaseUI).IsAssignableFrom(t)) { throw new Exception($"{t} does not extend BaseUI!"); } RegisterManipulator((otherType, x) => t.IsAssignableFrom(otherType), man); }
public static void RegisterManipulator(PurchasableUIPredicate pred, PurchasableManipulatorDelegate man) { customManipulators.Add(pred, man); }