diff --git a/src/Builtin/Aspects.cs b/src/Builtin/Aspects.cs index 8cfe332..1e4bf65 100644 --- a/src/Builtin/Aspects.cs +++ b/src/Builtin/Aspects.cs @@ -1,7 +1,7 @@ #if DISABLE_DEBUG #undef DEBUG #endif -using DCFApixels.DragonECS.PoolsCore; +using DCFApixels.DragonECS.Core; namespace DCFApixels.DragonECS { diff --git a/src/Builtin/BaseProcesses.cs b/src/Builtin/BaseProcesses.cs index 3a25389..1e94974 100644 --- a/src/Builtin/BaseProcesses.cs +++ b/src/Builtin/BaseProcesses.cs @@ -1,7 +1,6 @@ #if DISABLE_DEBUG #undef DEBUG #endif -using DCFApixels.DragonECS.RunnersCore; using System; namespace DCFApixels.DragonECS diff --git a/src/Consts.cs b/src/Consts.cs index cf620b2..a6b87c2 100644 --- a/src/Consts.cs +++ b/src/Consts.cs @@ -1,6 +1,4 @@ -using System; - -namespace DCFApixels.DragonECS +namespace DCFApixels.DragonECS { public static class EcsConsts { diff --git a/src/DebugUtils/EcsDebugUtility.cs b/src/DebugUtils/EcsDebugUtility.cs index 4ff1577..956e184 100644 --- a/src/DebugUtils/EcsDebugUtility.cs +++ b/src/DebugUtils/EcsDebugUtility.cs @@ -285,7 +285,7 @@ namespace DCFApixels.DragonECS public static TypeMeta GetTypeMeta(object obj) { if (obj == null) { return TypeMeta.NullTypeMeta; } - return TypeMeta.Get(Type.GetTypeHandle(GetTypeMetaSource(obj))); + return TypeMeta.Get(Type.GetTypeHandle(obj)); } public static TypeMeta GetTypeMeta() { @@ -300,17 +300,6 @@ namespace DCFApixels.DragonECS return TypeMeta.Get(typeHandle); } #endregion - - #region TypeMetaProvider - public static bool IsTypeMetaProvided(object obj) - { - return obj is IEcsTypeMetaProvider; - } - public static object GetTypeMetaSource(object obj) - { - return obj is IEcsTypeMetaProvider intr ? intr.MetaSource : obj; - } - #endregion } public static class TypeMetaDataCachedExtensions diff --git a/src/DebugUtils/Interfaces.meta b/src/DebugUtils/Interfaces.meta deleted file mode 100644 index 50388c5..0000000 --- a/src/DebugUtils/Interfaces.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 50bc53c3762bf6b4ea127004a89a894e -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/DebugUtils/Interfaces/IEcsTypeMetaProvider.cs b/src/DebugUtils/Interfaces/IEcsTypeMetaProvider.cs deleted file mode 100644 index c3315d1..0000000 --- a/src/DebugUtils/Interfaces/IEcsTypeMetaProvider.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace DCFApixels.DragonECS -{ - public interface IEcsTypeMetaProvider - { - object MetaSource { get; } - } -} diff --git a/src/DebugUtils/MetaAttributes/EcsMetaAttribute.cs b/src/DebugUtils/MetaAttributes/DragonMetaAttribute.cs similarity index 97% rename from src/DebugUtils/MetaAttributes/EcsMetaAttribute.cs rename to src/DebugUtils/MetaAttributes/DragonMetaAttribute.cs index 74118f5..2e0d8bb 100644 --- a/src/DebugUtils/MetaAttributes/EcsMetaAttribute.cs +++ b/src/DebugUtils/MetaAttributes/DragonMetaAttribute.cs @@ -5,7 +5,7 @@ using System; namespace DCFApixels.DragonECS.Core { - public abstract class EcsMetaAttribute : Attribute { } + public abstract class DragonMetaAttribute : Attribute { } internal static class EcsMetaAttributeHalper { diff --git a/src/DebugUtils/MetaAttributes/EcsMetaAttribute.cs.meta b/src/DebugUtils/MetaAttributes/DragonMetaAttribute.cs.meta similarity index 83% rename from src/DebugUtils/MetaAttributes/EcsMetaAttribute.cs.meta rename to src/DebugUtils/MetaAttributes/DragonMetaAttribute.cs.meta index 94d5ad9..7dc8e1e 100644 --- a/src/DebugUtils/MetaAttributes/EcsMetaAttribute.cs.meta +++ b/src/DebugUtils/MetaAttributes/DragonMetaAttribute.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: eb8cc656a6e80f843b8794af9f63faa8 +guid: fd6afd87df377e5408428ccec3c02685 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs b/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs index 6b8bc10..d10bac2 100644 --- a/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs +++ b/src/DebugUtils/MetaAttributes/MetaColorAttribute.cs @@ -23,7 +23,7 @@ namespace DCFApixels.DragonECS #endregion } [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] - public sealed class MetaColorAttribute : EcsMetaAttribute, IMetaColor + public sealed class MetaColorAttribute : DragonMetaAttribute, IMetaColor { public readonly MetaColor color; diff --git a/src/DebugUtils/MetaAttributes/MetaDescriptionAttribute.cs b/src/DebugUtils/MetaAttributes/MetaDescriptionAttribute.cs index 6b5352a..cabf323 100644 --- a/src/DebugUtils/MetaAttributes/MetaDescriptionAttribute.cs +++ b/src/DebugUtils/MetaAttributes/MetaDescriptionAttribute.cs @@ -7,7 +7,7 @@ using System; namespace DCFApixels.DragonECS { [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] - public sealed class MetaDescriptionAttribute : EcsMetaAttribute + public sealed class MetaDescriptionAttribute : DragonMetaAttribute { public readonly MetaDescription Data; public MetaDescriptionAttribute(string text) diff --git a/src/DebugUtils/MetaAttributes/MetaGroupAttribute.cs b/src/DebugUtils/MetaAttributes/MetaGroupAttribute.cs index 832c3da..bb41627 100644 --- a/src/DebugUtils/MetaAttributes/MetaGroupAttribute.cs +++ b/src/DebugUtils/MetaAttributes/MetaGroupAttribute.cs @@ -10,7 +10,7 @@ using System.Text.RegularExpressions; namespace DCFApixels.DragonECS { [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] - public sealed class MetaGroupAttribute : EcsMetaAttribute + public sealed class MetaGroupAttribute : DragonMetaAttribute { public const char SEPARATOR = MetaGroup.SEPARATOR; public readonly string Name = string.Empty; diff --git a/src/DebugUtils/MetaAttributes/MetaIDAttribute.cs b/src/DebugUtils/MetaAttributes/MetaIDAttribute.cs index 2b4d3ab..319fa52 100644 --- a/src/DebugUtils/MetaAttributes/MetaIDAttribute.cs +++ b/src/DebugUtils/MetaAttributes/MetaIDAttribute.cs @@ -14,7 +14,7 @@ using System.Text.RegularExpressions; namespace DCFApixels.DragonECS { [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] - public sealed class MetaIDAttribute : EcsMetaAttribute + public sealed class MetaIDAttribute : DragonMetaAttribute { public readonly string ID; public MetaIDAttribute(string id) diff --git a/src/DebugUtils/MetaAttributes/MetaNameAttribute.cs b/src/DebugUtils/MetaAttributes/MetaNameAttribute.cs index c82632b..4144677 100644 --- a/src/DebugUtils/MetaAttributes/MetaNameAttribute.cs +++ b/src/DebugUtils/MetaAttributes/MetaNameAttribute.cs @@ -7,7 +7,7 @@ using System; namespace DCFApixels.DragonECS { [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] - public sealed class MetaNameAttribute : EcsMetaAttribute + public sealed class MetaNameAttribute : DragonMetaAttribute { public readonly string name; public readonly bool isHideGeneric; diff --git a/src/DebugUtils/MetaAttributes/MetaProxyAttribute.cs b/src/DebugUtils/MetaAttributes/MetaProxyAttribute.cs new file mode 100644 index 0000000..b0fa9ba --- /dev/null +++ b/src/DebugUtils/MetaAttributes/MetaProxyAttribute.cs @@ -0,0 +1,34 @@ +#if DISABLE_DEBUG +#undef DEBUG +#endif +using DCFApixels.DragonECS.Core; +using System; +using System.Collections.Generic; + +namespace DCFApixels.DragonECS +{ + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)] + public sealed class MetaProxyAttribute : DragonMetaAttribute + { + public Type Type; + public MetaProxyAttribute(Type type) + { + Type = type; + } + } + public class MetaProxy + { + public static readonly MetaProxy EmptyProxy = new MetaProxy(typeof(void)); + public static TypeMeta EmptyMeta => TypeMeta.NullTypeMeta; + public readonly Type Type; + public virtual string Name { get { return null; } } + public virtual MetaColor? Color { get { return null; } } + public virtual MetaDescription Description { get { return null; } } + public virtual MetaGroup Group { get { return null; } } + public virtual IEnumerable Tags { get { return null; } } + public MetaProxy(Type type) + { + Type = type; + } + } +} \ No newline at end of file diff --git a/src/DebugUtils/Interfaces/IEcsTypeMetaProvider.cs.meta b/src/DebugUtils/MetaAttributes/MetaProxyAttribute.cs.meta similarity index 83% rename from src/DebugUtils/Interfaces/IEcsTypeMetaProvider.cs.meta rename to src/DebugUtils/MetaAttributes/MetaProxyAttribute.cs.meta index 5ae3193..a8defd3 100644 --- a/src/DebugUtils/Interfaces/IEcsTypeMetaProvider.cs.meta +++ b/src/DebugUtils/MetaAttributes/MetaProxyAttribute.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 4a642dc8905124247bf83c9d13d8fb13 +guid: 2ce533d3befbc0f4fb16b68a1bcce552 MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/src/DebugUtils/MetaAttributes/MetaTagsAttribute.cs b/src/DebugUtils/MetaAttributes/MetaTagsAttribute.cs index ee7816f..925f554 100644 --- a/src/DebugUtils/MetaAttributes/MetaTagsAttribute.cs +++ b/src/DebugUtils/MetaAttributes/MetaTagsAttribute.cs @@ -8,7 +8,7 @@ using System.Collections.Generic; namespace DCFApixels.DragonECS { [AttributeUsage(AttributeTargets.Struct | AttributeTargets.Class | AttributeTargets.Interface, Inherited = false, AllowMultiple = false)] - public sealed class MetaTagsAttribute : EcsMetaAttribute + public sealed class MetaTagsAttribute : DragonMetaAttribute { public const char SEPARATOR = ','; private readonly string[] _tags = Array.Empty(); diff --git a/src/DebugUtils/TypeMeta.cs b/src/DebugUtils/TypeMeta.cs index fcef05a..1886d20 100644 --- a/src/DebugUtils/TypeMeta.cs +++ b/src/DebugUtils/TypeMeta.cs @@ -3,7 +3,6 @@ #endif using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Collections.Generic; using System.Diagnostics; @@ -441,7 +440,7 @@ namespace DCFApixels.DragonECS public static bool IsHasCustomMeta(Type type) { #if DEBUG || !REFLECTION_DISABLED - return CheckEcsMemener(type) || Attribute.GetCustomAttributes(type, typeof(EcsMetaAttribute), false).Length > 0; + return CheckEcsMemener(type) || Attribute.GetCustomAttributes(type, typeof(DragonMetaAttribute), false).Length > 0; #else EcsDebug.PrintWarning($"Reflection is not available, the {nameof(TypeMeta)}.{nameof(IsHasMeta)} method does not work."); return false; @@ -681,28 +680,4 @@ namespace DCFApixels.DragonECS } #endregion } - [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, AllowMultiple = false, Inherited = true)] - public sealed class MetaProxyAttribute : EcsMetaAttribute - { - public Type Type; - public MetaProxyAttribute(Type type) - { - Type = type; - } - } - public class MetaProxy - { - public static readonly MetaProxy EmptyProxy = new MetaProxy(typeof(void)); - public static TypeMeta EmptyMeta => TypeMeta.NullTypeMeta; - public readonly Type Type; - public virtual string Name { get { return null; } } - public virtual MetaColor? Color { get { return null; } } - public virtual MetaDescription Description { get { return null; } } - public virtual MetaGroup Group { get { return null; } } - public virtual IEnumerable Tags { get { return null; } } - public MetaProxy(Type type) - { - Type = type; - } - } } \ No newline at end of file diff --git a/src/EcsAspect.cs b/src/EcsAspect.cs index 0943c61..04d19c3 100644 --- a/src/EcsAspect.cs +++ b/src/EcsAspect.cs @@ -3,7 +3,6 @@ #endif using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Collections.Generic; diff --git a/src/EcsPipeline.Builder.cs b/src/EcsPipeline.Builder.cs index 0298976..f91114f 100644 --- a/src/EcsPipeline.Builder.cs +++ b/src/EcsPipeline.Builder.cs @@ -3,7 +3,6 @@ #endif using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.RunnersCore; using System; using System.Collections.Generic; using System.Runtime.CompilerServices; diff --git a/src/EcsPipeline.cs b/src/EcsPipeline.cs index a8ca5d0..56923f3 100644 --- a/src/EcsPipeline.cs +++ b/src/EcsPipeline.cs @@ -1,8 +1,8 @@ #if DISABLE_DEBUG #undef DEBUG #endif +using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.RunnersCore; using System; using System.Collections; using System.Collections.Generic; diff --git a/src/EcsRunner.cs b/src/EcsRunner.cs index c86b992..054cef3 100644 --- a/src/EcsRunner.cs +++ b/src/EcsRunner.cs @@ -1,8 +1,8 @@ #if DISABLE_DEBUG #undef DEBUG #endif +using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.RunnersCore; using System; using System.Linq; using System.Runtime.CompilerServices; @@ -17,7 +17,7 @@ namespace DCFApixels.DragonECS [MetaID("DragonECS_EF8A557C9201E6F04D4A76DC670BDE19")] public interface IEcsProcess : IEcsMember { } - namespace RunnersCore + namespace Core { //добавить инъекцию в раннеры public abstract class EcsRunner diff --git a/src/EcsWorld.cache.cs b/src/EcsWorld.cache.cs index 3f193c4..3057b92 100644 --- a/src/EcsWorld.cache.cs +++ b/src/EcsWorld.cache.cs @@ -2,7 +2,6 @@ #undef DEBUG #endif using DCFApixels.DragonECS.Core; -using DCFApixels.DragonECS.PoolsCore; namespace DCFApixels.DragonECS { diff --git a/src/EcsWorld.cs b/src/EcsWorld.cs index a12330f..92d3fed 100644 --- a/src/EcsWorld.cs +++ b/src/EcsWorld.cs @@ -4,7 +4,6 @@ using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; using DCFApixels.DragonECS.Core.Unchecked; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/src/EcsWorld.pools.cs b/src/EcsWorld.pools.cs index 8d84e68..9b0d3fd 100644 --- a/src/EcsWorld.pools.cs +++ b/src/EcsWorld.pools.cs @@ -1,8 +1,8 @@ #if DISABLE_DEBUG #undef DEBUG #endif +using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Linq; using System.Runtime.CompilerServices; diff --git a/src/Injections/Utils/Interfaces.cs b/src/Injections/Interfaces.cs similarity index 100% rename from src/Injections/Utils/Interfaces.cs rename to src/Injections/Interfaces.cs diff --git a/src/Injections/Utils/Interfaces.cs.meta b/src/Injections/Interfaces.cs.meta similarity index 100% rename from src/Injections/Utils/Interfaces.cs.meta rename to src/Injections/Interfaces.cs.meta diff --git a/src/Injections/Utils.meta b/src/Injections/Utils.meta deleted file mode 100644 index 4b8d9a2..0000000 --- a/src/Injections/Utils.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: f5d8c72b3decc2b488a616932366ff0f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/src/Internal/SortHalper.cs b/src/Internal/SortHalper.cs index 6d53e4a..15e0917 100644 --- a/src/Internal/SortHalper.cs +++ b/src/Internal/SortHalper.cs @@ -389,253 +389,4 @@ namespace DCFApixels.DragonECS.Core.Internal } } #endregion -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -//namespace DCFApixels.DragonECS.Core.Internal -//{ -// internal interface IStructComparer : IComparer -// { -// // a > b = return > 0 -// // int Compare(T a, T b); -// } -// -//#if ENABLE_IL2CPP -// [Il2CppSetOption(Option.NullChecks, false)] -// [Il2CppSetOption(Option.ArrayBoundsChecks, false)] -//#endif -// internal static class ArraySortHalperX -// { -// private const int IntrosortSizeThreshold = 16; -// -// #region IStructComparer -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void SwapIfGreater(T[] items, ref TComparer comparer, int i, int j) where TComparer : IStructComparer -// { -// if (comparer.Compare(items[i], items[j]) > 0) -// { -// T key = items[i]; -// items[i] = items[j]; -// items[j] = key; -// } -// } -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void InsertionSort(T[] items, ref TComparer comparer) where TComparer : IStructComparer -// { -// for (int i = 0; i < items.Length - 1; i++) -// { -// T t = items[i + 1]; -// -// int j = i; -// while (j >= 0 && comparer.Compare(t, items[j]) < 0) -// { -// items[j + 1] = items[j]; -// j--; -// } -// -// items[j + 1] = t; -// } -// } -// -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void Sort(T[] items, ref TComparer comparer) where TComparer : IStructComparer -// { -// int length = items.Length; -// if (length == 1) -// { -// return; -// } -// -// if (length <= IntrosortSizeThreshold) -// { -// -// if (length == 2) -// { -// SwapIfGreater(items, ref comparer, 0, 1); -// return; -// } -// -// if (length == 3) -// { -// SwapIfGreater(items, ref comparer, 0, 1); -// SwapIfGreater(items, ref comparer, 0, 2); -// SwapIfGreater(items, ref comparer, 1, 2); -// return; -// } -// -// InsertionSort(items, ref comparer); -// return; -// } -// -// IStructComparer packed = comparer; -// Array.Sort(items, 0, items.Length, packed); -// comparer = (TComparer)packed; -// } -// #endregion -// -// #region Comparison -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void SwapIfGreater(T[] items, Comparison comparison, int i, int j) -// { -// if (comparison(items[i], items[j]) > 0) -// { -// T key = items[i]; -// items[i] = items[j]; -// items[j] = key; -// } -// } -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void InsertionSort(T[] items, int length, Comparison comparison) -// { -// for (int i = 0; i < length - 1; i++) -// { -// T t = items[i + 1]; -// -// int j = i; -// while (j >= 0 && comparison(t, items[j]) < 0) -// { -// items[j + 1] = items[j]; -// j--; -// } -// -// items[j + 1] = t; -// } -// } -// -//#if ENABLE_IL2CPP -// [Il2CppSetOption(Option.NullChecks, false)] -// [Il2CppSetOption(Option.ArrayBoundsChecks, false)] -//#endif -// private class ComparisonHach : IComparer -// { -// public static readonly ComparisonHach Instance = new ComparisonHach(); -// public Comparison comparison; -// private ComparisonHach() { } -// public int Compare(T x, T y) { return comparison(x, y); } -// } -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void Sort(T[] items, Comparison comparison) -// { -// Sort(items, comparison, items.Length); -// } -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void Sort(T[] items, Comparison comparison, int length) -// { -// if (length <= IntrosortSizeThreshold) -// { -// if (length == 1) -// { -// return; -// } -// if (length == 2) -// { -// SwapIfGreater(items, comparison, 0, 1); -// return; -// } -// if (length == 3) -// { -// SwapIfGreater(items, comparison, 0, 1); -// SwapIfGreater(items, comparison, 0, 2); -// SwapIfGreater(items, comparison, 1, 2); -// return; -// } -// InsertionSort(items, length, comparison); -// return; -// } -// ComparisonHach.Instance.comparison = comparison; -// Array.Sort(items, 0, length, ComparisonHach.Instance); -// } -// #endregion -// } -// -//#if ENABLE_IL2CPP -// [Il2CppSetOption(Option.NullChecks, false)] -// [Il2CppSetOption(Option.ArrayBoundsChecks, false)] -//#endif -// internal static unsafe class UnsafeArraySortHalperX where T : unmanaged -// { -// private const int IntrosortSizeThreshold = 16; -// -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void SwapIfGreater(T* items, ref TComparer comparer, int i, int j) where TComparer : IStructComparer -// { -// if (comparer.Compare(items[i], items[j]) > 0) -// { -// T key = items[i]; -// items[i] = items[j]; -// items[j] = key; -// } -// } -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static void InsertionSort_Unchecked(T* items, int length, ref TComparer comparer) where TComparer : IStructComparer -// { -// for (int i = 0; i < length - 1; i++) -// { -// T t = items[i + 1]; -// -// int j = i; -// while (j >= 0 && comparer.Compare(t, items[j]) < 0) -// { -// items[j + 1] = items[j]; -// j--; -// } -// -// items[j + 1] = t; -// } -// } -// public static void InsertionSort(T* items, int length, ref TComparer comparer) where TComparer : IStructComparer -// { -// if (length == 1) -// { -// return; -// } -// -// if (length == 2) -// { -// SwapIfGreater(items, ref comparer, 0, 1); -// return; -// } -// -// if (length == 3) -// { -// SwapIfGreater(items, ref comparer, 0, 1); -// SwapIfGreater(items, ref comparer, 0, 2); -// SwapIfGreater(items, ref comparer, 1, 2); -// return; -// } -// -// InsertionSort_Unchecked(items, length, ref comparer); -// } -// } -//} \ No newline at end of file +} \ No newline at end of file diff --git a/src/Pools/EcsPool.cs b/src/Pools/EcsPool.cs index bb611c7..db479f0 100644 --- a/src/Pools/EcsPool.cs +++ b/src/Pools/EcsPool.cs @@ -3,7 +3,6 @@ #endif using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Collections; using System.Collections.Generic; diff --git a/src/Pools/EcsPoolBase.cs b/src/Pools/EcsPoolBase.cs index 6874a07..2777a69 100644 --- a/src/Pools/EcsPoolBase.cs +++ b/src/Pools/EcsPoolBase.cs @@ -8,13 +8,12 @@ #endif using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.CompilerServices; -namespace DCFApixels.DragonECS.PoolsCore +namespace DCFApixels.DragonECS.Core { /// Only used to implement a custom pool. In other contexts use IEcsPool or IEcsPool. public interface IEcsPoolImplementation : IEcsPool diff --git a/src/Pools/EcsTagPool.cs b/src/Pools/EcsTagPool.cs index b229203..8ec8a96 100644 --- a/src/Pools/EcsTagPool.cs +++ b/src/Pools/EcsTagPool.cs @@ -3,7 +3,6 @@ #endif using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Collections; using System.Collections.Generic; diff --git a/src/Pools/EcsValuePool.cs b/src/Pools/EcsValuePool.cs index 0107a47..93f868d 100644 --- a/src/Pools/EcsValuePool.cs +++ b/src/Pools/EcsValuePool.cs @@ -3,7 +3,6 @@ #endif using DCFApixels.DragonECS.Core; using DCFApixels.DragonECS.Core.Internal; -using DCFApixels.DragonECS.PoolsCore; using System; using System.Collections; using System.Collections.Generic;