mirror of
https://github.com/DCFApixels/DragonECS-AutoInjections.git
synced 2025-09-18 05:04:35 +08:00
Compare commits
3 Commits
f23f9692a2
...
443a69615a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
443a69615a | ||
![]() |
a0bec24fd2 | ||
![]() |
0684b90584 |
@ -8,7 +8,7 @@
|
|||||||
"displayName": "DragonECS-AutoInjections",
|
"displayName": "DragonECS-AutoInjections",
|
||||||
"description": "Auto Injections for DragonECS",
|
"description": "Auto Injections for DragonECS",
|
||||||
"unity": "2020.3",
|
"unity": "2020.3",
|
||||||
"version": "0.9.16",
|
"version": "0.9.17",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/DCFApixels/DragonECS-AutoInjections.git"
|
"url": "https://github.com/DCFApixels/DragonECS-AutoInjections.git"
|
||||||
|
@ -66,10 +66,10 @@ namespace DCFApixels.DragonECS
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if DEBUG
|
||||||
if (!isAgressiveInjection && o.CanWrite == false) { Throw.PropertyIsCantWrite(o); }
|
if (!isAgressiveInjection && o.CanWrite == false) { Throw.PropertyIsCantWrite(o); }
|
||||||
#endif
|
#endif
|
||||||
return o.CanWrite == false;
|
return o.CanWrite;
|
||||||
})
|
})
|
||||||
.Select(o => new InjectedProperty(o)));
|
.Select(o => new InjectedProperty(o)));
|
||||||
|
|
||||||
@ -81,13 +81,13 @@ namespace DCFApixels.DragonECS
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var parameters = o.GetParameters();
|
var parameters = o.GetParameters();
|
||||||
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
|
|
||||||
if (!isAgressiveInjection)
|
if (!isAgressiveInjection)
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
if (o.IsGenericMethod) { Throw.MethodIsGeneric(o); }
|
if (o.IsGenericMethod) { Throw.MethodIsGeneric(o); }
|
||||||
if (parameters.Length != 1) { Throw.MethodArgumentsGreater1(o); }
|
if (parameters.Length != 1) { Throw.MethodArgumentsGreater1(o); }
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
return o.IsGenericMethod == false && parameters.Length == 1;
|
return o.IsGenericMethod == false && parameters.Length == 1;
|
||||||
})
|
})
|
||||||
.Select(o => new InjectedMethod(o)));
|
.Select(o => new InjectedMethod(o)));
|
||||||
|
Loading…
Reference in New Issue
Block a user