mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-19 02:24:37 +08:00
Update EcsGroup.cs
This commit is contained in:
parent
87ec923ff9
commit
7a6dc93bdb
@ -349,7 +349,7 @@ namespace DCFApixels.DragonECS
|
|||||||
public void UnionWith(EcsSpan span)
|
public void UnionWith(EcsSpan span)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException();
|
if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException();
|
||||||
#endif
|
#endif
|
||||||
foreach (var item in span)
|
foreach (var item in span)
|
||||||
{
|
{
|
||||||
@ -385,7 +385,7 @@ namespace DCFApixels.DragonECS
|
|||||||
public void ExceptWith(EcsSpan span)
|
public void ExceptWith(EcsSpan span)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException();
|
if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException();
|
||||||
#endif
|
#endif
|
||||||
foreach (var item in span)
|
foreach (var item in span)
|
||||||
{
|
{
|
||||||
@ -458,7 +458,7 @@ namespace DCFApixels.DragonECS
|
|||||||
public bool SetEquals(EcsSpan span)
|
public bool SetEquals(EcsSpan span)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException();
|
if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException();
|
||||||
#endif
|
#endif
|
||||||
if (span.Length != Count)
|
if (span.Length != Count)
|
||||||
return false;
|
return false;
|
||||||
@ -494,7 +494,7 @@ namespace DCFApixels.DragonECS
|
|||||||
public bool Overlaps(EcsSpan span)
|
public bool Overlaps(EcsSpan span)
|
||||||
{
|
{
|
||||||
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
|
||||||
if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException();
|
if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException();
|
||||||
#endif
|
#endif
|
||||||
foreach (var item in span)
|
foreach (var item in span)
|
||||||
if (Has(item))
|
if (Has(item))
|
||||||
|
Loading…
Reference in New Issue
Block a user