private static T ConverterInjector <T>(IInjectorElement me) where T : MDE.InjectorElement, new() { var vm = Convert <T>(me); vm.InserterId = me.InserterId; vm.Position = me.Position.Convert(); vm.Direction = me.Direction.Convert(); vm.InserterColor = me.InserterColor.Convert(); return(vm); }
private static MDE.MachineElement Convert(IInjectorElement e) => ConverterInjector <MDE.InjectorElement>(e);
public InserterToSinkTransformer(IInsertionsSink sink, IInjectorElement injector) { _sink = sink; _injector = injector; }
public IInserterToSinkTransformer GetTransformer(IInsertionsSink sink, IInjectorElement injector) => new InserterToSinkTransformer(sink, injector);