mirror of
https://github.com/DCFApixels/DragonECS-AutoInjections.git
synced 2025-09-19 05:44:34 +08:00
Compare commits
No commits in common. "443a69615a4baceb650990a27d2ac6b15b0c839b" and "f23f9692a2536d15752b236447d1e133314e80ae" have entirely different histories.
443a69615a
...
f23f9692a2
@ -8,7 +8,7 @@
|
||||
"displayName": "DragonECS-AutoInjections",
|
||||
"description": "Auto Injections for DragonECS",
|
||||
"unity": "2020.3",
|
||||
"version": "0.9.17",
|
||||
"version": "0.9.16",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DCFApixels/DragonECS-AutoInjections.git"
|
||||
|
@ -66,10 +66,10 @@ namespace DCFApixels.DragonECS
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#if DEBUG
|
||||
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||
if (!isAgressiveInjection && o.CanWrite == false) { Throw.PropertyIsCantWrite(o); }
|
||||
#endif
|
||||
return o.CanWrite;
|
||||
return o.CanWrite == false;
|
||||
})
|
||||
.Select(o => new InjectedProperty(o)));
|
||||
|
||||
@ -81,13 +81,13 @@ namespace DCFApixels.DragonECS
|
||||
return false;
|
||||
}
|
||||
var parameters = o.GetParameters();
|
||||
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||
if (!isAgressiveInjection)
|
||||
{
|
||||
#if DEBUG
|
||||
if (o.IsGenericMethod) { Throw.MethodIsGeneric(o); }
|
||||
if (parameters.Length != 1) { Throw.MethodArgumentsGreater1(o); }
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
return o.IsGenericMethod == false && parameters.Length == 1;
|
||||
})
|
||||
.Select(o => new InjectedMethod(o)));
|
||||
|
Loading…
Reference in New Issue
Block a user