Compare commits

...

3 Commits

Author SHA1 Message Date
DCFApixels
443a69615a up version to 0.9.17 2025-03-15 17:08:05 +08:00
DCFApixels
a0bec24fd2 defines refactoring 2025-03-15 15:10:16 +08:00
DCFApixels
0684b90584 fix 2025-03-15 15:09:11 +08:00
2 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@
"displayName": "DragonECS-AutoInjections",
"description": "Auto Injections for DragonECS",
"unity": "2020.3",
"version": "0.9.16",
"version": "0.9.17",
"repository": {
"type": "git",
"url": "https://github.com/DCFApixels/DragonECS-AutoInjections.git"

View File

@ -66,10 +66,10 @@ namespace DCFApixels.DragonECS
{
return false;
}
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
#if DEBUG
if (!isAgressiveInjection && o.CanWrite == false) { Throw.PropertyIsCantWrite(o); }
#endif
return o.CanWrite == false;
return o.CanWrite;
})
.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
}
return o.IsGenericMethod == false && parameters.Length == 1;
})
.Select(o => new InjectedMethod(o)));