mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54:35 +08:00
remove EcsGroup.Release
This commit is contained in:
parent
5c714b068d
commit
e828864ca8
@ -157,7 +157,7 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Constrcutors
|
#region Constrcutors/Dispose
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
public static EcsGroup New(EcsWorld world)
|
public static EcsGroup New(EcsWorld world)
|
||||||
{
|
{
|
||||||
@ -172,6 +172,7 @@ namespace DCFApixels.DragonECS
|
|||||||
|
|
||||||
_count = 0;
|
_count = 0;
|
||||||
}
|
}
|
||||||
|
public void Dispose() => _source.ReleaseGroup(this);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Has/IndexOf
|
#region Has/IndexOf
|
||||||
@ -517,11 +518,6 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region IDisposable/Release
|
|
||||||
public void Dispose() => Release();
|
|
||||||
public void Release() => _source.ReleaseGroup(this);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region ThrowHalper
|
#region ThrowHalper
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
internal static class ThrowHelper
|
internal static class ThrowHelper
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
protected sealed override void OnDestroy()
|
protected sealed override void OnDestroy()
|
||||||
{
|
{
|
||||||
_filteredGroup.Release();
|
_filteredGroup.Dispose();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user