rename DeclareRunner to GetRunnerInstance

This commit is contained in:
Mikhail 2024-02-26 08:48:43 +08:00
parent e8d46e81ab
commit 81eb3e215f

View File

@ -6,7 +6,7 @@ namespace DCFApixels.DragonECS
{ {
public static class ProcessRunnerBinder public static class ProcessRunnerBinder
{ {
private static MethodInfo _declareRunnerMethod = typeof(EcsPipeline).GetMethod(nameof(EcsPipeline.DeclareRunner)); private static MethodInfo _declareRunnerMethod = typeof(EcsPipeline).GetMethod(nameof(EcsPipeline.GetRunnerInstance));
public static T GetRunnerAuto<T>(this EcsPipeline self) where T : IEcsProcess public static T GetRunnerAuto<T>(this EcsPipeline self) where T : IEcsProcess
{ {
if(self.TryGetRunner(out T process)) if(self.TryGetRunner(out T process))