diff --git a/src/DebugUtils/Editor/EntlongDrawer.cs b/src/DebugUtils/Editor/EntlongDrawer.cs index a5a25f2..198e42e 100644 --- a/src/DebugUtils/Editor/EntlongDrawer.cs +++ b/src/DebugUtils/Editor/EntlongDrawer.cs @@ -78,7 +78,7 @@ namespace DCFApixels.DragonECS.Unity.Editors entlong ent = default; bool isValide = false; var dragged = DragAndDrop.objectReferences[0]; - if(dragged is GameObject go) + if (dragged is GameObject go) { if (go.TryGetComponent(out EcsEntityConnect connect)) { @@ -104,8 +104,8 @@ namespace DCFApixels.DragonECS.Unity.Editors isValide = true; } } - - if(isValide) + + if (isValide) { long entityLong = *(long*)&ent; fulleProperty.longValue = entityLong; diff --git a/src/Internal/Editor/MetaObjectsDropDown.cs b/src/Internal/Editor/MetaObjectsDropDown.cs index 66a8dca..2841098 100644 --- a/src/Internal/Editor/MetaObjectsDropDown.cs +++ b/src/Internal/Editor/MetaObjectsDropDown.cs @@ -333,7 +333,7 @@ namespace DCFApixels.DragonECS.Unity.Editors var x = Group.Splited.GetEnumerator(); x.MoveNext(); return x.Current.GetHashCode() ^ state; - }; + } } } #endregion diff --git a/src/Internal/Utils/ReadOnlyList.cs b/src/Internal/Utils/ReadOnlyList.cs index 87e7b99..4f8d342 100644 --- a/src/Internal/Utils/ReadOnlyList.cs +++ b/src/Internal/Utils/ReadOnlyList.cs @@ -5,7 +5,7 @@ namespace DCFApixels.DragonECS.Unity.Internal { internal readonly struct ReadOnlyList : IEnumerable, IReadOnlyList { - private readonly List _list; + private readonly List _list; public ReadOnlyList(List list) { _list = list; diff --git a/src/Internal/Utils/RectUtility.cs b/src/Internal/Utils/RectUtility.cs index 98a23fb..87a16a5 100644 --- a/src/Internal/Utils/RectUtility.cs +++ b/src/Internal/Utils/RectUtility.cs @@ -62,7 +62,7 @@ namespace DCFApixels.DragonECS.Unity.Internal state ^= state >> 17; state ^= state << 5; return state; - }; + } } public static void DebugRect_Editor(params Rect[] rects) { diff --git a/src/Internal/Utils/StructList.cs b/src/Internal/Utils/StructList.cs index 89eb4cb..c4d6439 100644 --- a/src/Internal/Utils/StructList.cs +++ b/src/Internal/Utils/StructList.cs @@ -249,17 +249,17 @@ namespace DCFApixels.DragonECS.Unity.Internal self._items[index] = item; } -// [MethodImpl(MethodImplOptions.AggressiveInlining)] -// public static bool TryDequeue_MultiAccess(this ref StructList self, T item) -// { -// var index = Interlocked.Increment(ref self._count); -// -//#if DEBUG -// if (_count <= 0) { Throw.ArgumentOutOfRange(); } -//#endif -// T result = _items[--_count]; -// _items[_count] = default; -// return result; -// } + // [MethodImpl(MethodImplOptions.AggressiveInlining)] + // public static bool TryDequeue_MultiAccess(this ref StructList self, T item) + // { + // var index = Interlocked.Increment(ref self._count); + // + //#if DEBUG + // if (_count <= 0) { Throw.ArgumentOutOfRange(); } + //#endif + // T result = _items[--_count]; + // _items[_count] = default; + // return result; + // } } } \ No newline at end of file diff --git a/src/Tools/DeepDebugger/Editors/DeepDebuggerWindow.cs b/src/Tools/DeepDebugger/Editors/DeepDebuggerWindow.cs index e23c2a4..35f0f75 100644 --- a/src/Tools/DeepDebugger/Editors/DeepDebuggerWindow.cs +++ b/src/Tools/DeepDebugger/Editors/DeepDebuggerWindow.cs @@ -43,7 +43,7 @@ namespace DCFApixels.DragonECS.Unity.Editors break; } } - + private void DrawScriptsCache() { if (GUILayout.Button("Reset")) diff --git a/src/Tools/RefRepairer/Editor/MetaIDRegistry.cs b/src/Tools/RefRepairer/Editor/MetaIDRegistry.cs index 502346b..7b32841 100644 --- a/src/Tools/RefRepairer/Editor/MetaIDRegistry.cs +++ b/src/Tools/RefRepairer/Editor/MetaIDRegistry.cs @@ -34,7 +34,7 @@ namespace DCFApixels.DragonECS.Unity.RefRepairer.Editors public bool TryGetMetaID(TypeData key, out string metaID) { bool result = _typeKeyMetaIDPairs.TryGetValue(key, out metaID); - if(result && string.IsNullOrEmpty(metaID)) + if (result && string.IsNullOrEmpty(metaID)) { result = false; _typeKeyMetaIDPairs.Remove(key); diff --git a/src/Tools/RefRepairer/TypeData.cs b/src/Tools/RefRepairer/TypeData.cs index 7a78879..3ac6c77 100644 --- a/src/Tools/RefRepairer/TypeData.cs +++ b/src/Tools/RefRepairer/TypeData.cs @@ -79,12 +79,12 @@ namespace DCFApixels.DragonECS.Unity.RefRepairer.Internal AssemblyName == other.AssemblyName; } public override bool Equals(object obj) { return Equals((TypeData)obj); } - public override int GetHashCode() + public override int GetHashCode() { int hash1 = ClassName.GetHashCode(); int hash2 = NamespaceName.GetHashCode(); int hash3 = AssemblyName.GetHashCode(); - return hash1 ^ hash2 ^ hash3; + return hash1 ^ hash2 ^ hash3; } public override string ToString() { return $"{{{AssemblyName}, {NamespaceName}, {ClassName}}}"; } }