static GameObjectParser() { Conversions.Add("trigger", typeof(Trigger)); Conversions.Add("processor", typeof(Processor)); Conversions.Add("action-script", typeof(Action)); }
public void RegisterConversion <C>(Func <C, T> conversion, Predicate <C> test) => Conversions.Add(new TypeConverter((x) => conversion.Invoke((C)x), x => test.Invoke((C)x)));