mirror of
https://github.com/DCFApixels/DragonECS-AutoInjections.git
synced 2025-09-17 20:34:34 +08:00
defines refactoring
This commit is contained in:
parent
99f6c30e2e
commit
f23f9692a2
@ -1,4 +1,7 @@
|
|||||||
using DCFApixels.DragonECS.AutoInjections.Internal;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using DCFApixels.DragonECS.AutoInjections.Internal;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using DCFApixels.DragonECS.PoolsCore;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using DCFApixels.DragonECS.PoolsCore;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
using DCFApixels.DragonECS.AutoInjections;
|
using DCFApixels.DragonECS.AutoInjections;
|
||||||
using DCFApixels.DragonECS.AutoInjections.Internal;
|
using DCFApixels.DragonECS.AutoInjections.Internal;
|
||||||
using System;
|
using System;
|
||||||
@ -63,7 +66,7 @@ namespace DCFApixels.DragonECS
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
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 == false;
|
||||||
@ -78,7 +81,7 @@ namespace DCFApixels.DragonECS
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var parameters = o.GetParameters();
|
var parameters = o.GetParameters();
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if DEBUG || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (!isAgressiveInjection)
|
if (!isAgressiveInjection)
|
||||||
{
|
{
|
||||||
if (o.IsGenericMethod) { Throw.MethodIsGeneric(o); }
|
if (o.IsGenericMethod) { Throw.MethodIsGeneric(o); }
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
namespace DCFApixels.DragonECS
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace DCFApixels.DragonECS
|
||||||
{
|
{
|
||||||
public static class AutoInjectSystemExtensions
|
public static class AutoInjectSystemExtensions
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
using System;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using System;
|
||||||
|
|
||||||
[AttributeUsage(AttributeTargets.Interface, Inherited = false, AllowMultiple = false)]
|
[AttributeUsage(AttributeTargets.Interface, Inherited = false, AllowMultiple = false)]
|
||||||
public sealed class BindWithRunnerAttribute : Attribute
|
public sealed class BindWithRunnerAttribute : Attribute
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using DCFApixels.DragonECS.AutoInjections.Internal;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using DCFApixels.DragonECS.AutoInjections.Internal;
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace DCFApixels.DragonECS
|
namespace DCFApixels.DragonECS
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
using System;
|
#if DISABLE_DEBUG
|
||||||
|
#undef DEBUG
|
||||||
|
#endif
|
||||||
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user