mirror of
https://github.com/DCFApixels/DragonECS-AutoInjections.git
synced 2025-09-18 13:24:35 +08:00
code cleanup
This commit is contained in:
parent
8daaed75ed
commit
4f71fa9405
@ -9,7 +9,7 @@ namespace DCFApixels.DragonECS
|
|||||||
private static MethodInfo _declareRunnerMethod = typeof(EcsPipeline).GetMethod(nameof(EcsPipeline.GetRunnerInstance));
|
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))
|
||||||
{
|
{
|
||||||
return process;
|
return process;
|
||||||
}
|
}
|
||||||
@ -19,7 +19,7 @@ namespace DCFApixels.DragonECS
|
|||||||
Type runnerType = atr.runnerType;
|
Type runnerType = atr.runnerType;
|
||||||
if (type.IsGenericType)
|
if (type.IsGenericType)
|
||||||
{
|
{
|
||||||
if(runnerType.IsGenericType == false ||
|
if (runnerType.IsGenericType == false ||
|
||||||
runnerType.IsGenericTypeDefinition == false)
|
runnerType.IsGenericTypeDefinition == false)
|
||||||
{
|
{
|
||||||
Throw.UndefinedException();
|
Throw.UndefinedException();
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Security;
|
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user