code cleanup

This commit is contained in:
Mikhail 2024-11-08 17:21:36 +08:00
parent ed698fbbd8
commit 820fae6f3e
9 changed files with 22 additions and 22 deletions

View File

@ -180,7 +180,7 @@ namespace DCFApixels.DragonECS
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[DebuggerTypeProxy(typeof(DebuggerProxy))] [DebuggerTypeProxy(typeof(DebuggerProxy))]

View File

@ -9,7 +9,7 @@ namespace DCFApixels.DragonECS
{ {
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
using Unity.IL2CPP.CompilerServices; using Unity.IL2CPP.CompilerServices;
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[DebuggerTypeProxy(typeof(DebuggerProxy))] [DebuggerTypeProxy(typeof(DebuggerProxy))]
@ -166,7 +166,7 @@ namespace DCFApixels.DragonECS
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[DebuggerTypeProxy(typeof(EcsSpan.DebuggerProxy))] [DebuggerTypeProxy(typeof(EcsSpan.DebuggerProxy))]

View File

@ -23,7 +23,7 @@ namespace DCFApixels.DragonECS
using static EcsMaskIteratorUtility; using static EcsMaskIteratorUtility;
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[DebuggerTypeProxy(typeof(DebuggerProxy))] [DebuggerTypeProxy(typeof(DebuggerProxy))]
@ -477,7 +477,7 @@ namespace DCFApixels.DragonECS
#region EcsMaskIterator #region EcsMaskIterator
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
public class EcsMaskIterator public class EcsMaskIterator
@ -616,7 +616,7 @@ namespace DCFApixels.DragonECS
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public Enumerable Iterate(EcsSpan span) { return new Enumerable(this, span); } public Enumerable Iterate(EcsSpan span) { return new Enumerable(this, span); }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
public readonly ref struct Enumerable public readonly ref struct Enumerable
@ -684,7 +684,7 @@ namespace DCFApixels.DragonECS
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
public unsafe ref struct Enumerator public unsafe ref struct Enumerator
@ -748,7 +748,7 @@ namespace DCFApixels.DragonECS
[MethodImpl(MethodImplOptions.AggressiveInlining)] [MethodImpl(MethodImplOptions.AggressiveInlining)]
public OnlyIncEnumerable IterateOnlyInc(EcsSpan span) { return new OnlyIncEnumerable(this, span); } public OnlyIncEnumerable IterateOnlyInc(EcsSpan span) { return new OnlyIncEnumerable(this, span); }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
public readonly ref struct OnlyIncEnumerable public readonly ref struct OnlyIncEnumerable
@ -817,7 +817,7 @@ namespace DCFApixels.DragonECS
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
public unsafe ref struct Enumerator public unsafe ref struct Enumerator
@ -874,7 +874,7 @@ namespace DCFApixels.DragonECS.Internal
{ {
#region EcsMaskIteratorUtility #region EcsMaskIteratorUtility
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
internal unsafe class EcsMaskIteratorUtility internal unsafe class EcsMaskIteratorUtility
@ -910,7 +910,7 @@ namespace DCFApixels.DragonECS.Internal
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
internal readonly struct IncCountComparer : IStructComparer<int> internal readonly struct IncCountComparer : IStructComparer<int>
@ -929,7 +929,7 @@ namespace DCFApixels.DragonECS.Internal
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
internal readonly struct ExcCountComparer : IStructComparer<int> internal readonly struct ExcCountComparer : IStructComparer<int>

View File

@ -13,7 +13,7 @@ using Unity.IL2CPP.CompilerServices;
namespace DCFApixels.DragonECS namespace DCFApixels.DragonECS
{ {
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[DebuggerTypeProxy(typeof(DebuggerProxy))] [DebuggerTypeProxy(typeof(DebuggerProxy))]

View File

@ -14,7 +14,7 @@ namespace DCFApixels.DragonECS.Internal
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
internal static class ArraySortHalperX<T> internal static class ArraySortHalperX<T>
@ -116,7 +116,7 @@ namespace DCFApixels.DragonECS.Internal
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
private class ComparisonHach : IComparer<T> private class ComparisonHach : IComparer<T>
@ -162,7 +162,7 @@ namespace DCFApixels.DragonECS.Internal
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
internal static unsafe class UnsafeArraySortHalperX<T> where T : unmanaged internal static unsafe class UnsafeArraySortHalperX<T> where T : unmanaged

View File

@ -10,7 +10,7 @@ using Unity.IL2CPP.CompilerServices;
namespace DCFApixels.DragonECS.Internal namespace DCFApixels.DragonECS.Internal
{ {
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
public static unsafe class TempBuffer<T> where T : unmanaged public static unsafe class TempBuffer<T> where T : unmanaged
@ -42,7 +42,7 @@ namespace DCFApixels.DragonECS.Internal
} }
} }
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
[Il2CppSetOption(Option.ArrayBoundsChecks, false)] [Il2CppSetOption(Option.ArrayBoundsChecks, false)]
#endif #endif
[DebuggerTypeProxy(typeof(UnsafeArray<>.DebuggerProxy))] [DebuggerTypeProxy(typeof(UnsafeArray<>.DebuggerProxy))]

View File

@ -19,7 +19,7 @@ namespace DCFApixels.DragonECS
/// <summary>Pool for IEcsComponent components</summary> /// <summary>Pool for IEcsComponent components</summary>
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
#endif #endif
[MetaColor(MetaColor.DragonRose)] [MetaColor(MetaColor.DragonRose)]
[MetaGroup(EcsConsts.PACK_GROUP, EcsConsts.POOLS_GROUP)] [MetaGroup(EcsConsts.PACK_GROUP, EcsConsts.POOLS_GROUP)]

View File

@ -21,7 +21,7 @@ namespace DCFApixels.DragonECS
/// <summary> Pool for IEcsTagComponent components. </summary> /// <summary> Pool for IEcsTagComponent components. </summary>
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
[Il2CppSetOption (Option.NullChecks, false)] [Il2CppSetOption(Option.NullChecks, false)]
#endif #endif
[MetaColor(MetaColor.DragonRose)] [MetaColor(MetaColor.DragonRose)]
[MetaGroup(EcsConsts.PACK_GROUP, EcsConsts.POOLS_GROUP)] [MetaGroup(EcsConsts.PACK_GROUP, EcsConsts.POOLS_GROUP)]