simple refactoring

This commit is contained in:
Mikhail 2024-02-11 01:29:18 +08:00
parent 6c449c94f6
commit 659b7fdb64
5 changed files with 7 additions and 9 deletions

View File

@ -1,5 +1,4 @@
using DCFApixels.DragonECS.Internal; using DCFApixels.DragonECS.Internal;
using DCFApixels.DragonECS.Utils;
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;

View File

@ -6,7 +6,7 @@ using System.Runtime.CompilerServices;
namespace DCFApixels.DragonECS namespace DCFApixels.DragonECS
{ {
public abstract partial class EcsWorld: IEntityStorage public abstract partial class EcsWorld : IEntityStorage
{ {
public readonly short id; public readonly short id;
private IEcsWorldConfig _config; private IEcsWorldConfig _config;
@ -239,7 +239,7 @@ namespace DCFApixels.DragonECS
public void DelEntity(int entityID) public void DelEntity(int entityID)
{ {
#if DEBUG #if DEBUG
if(IsUsed(entityID) == false) if (IsUsed(entityID) == false)
{ {
Throw.UndefinedException(); Throw.UndefinedException();
} }

View File

@ -33,7 +33,7 @@
#endregion #endregion
#region WhereToGroup #region WhereToGroup
public static EcsReadonlyGroup WhereToGroup<TCollection ,TAspect>(this TCollection entities, out TAspect aspect) public static EcsReadonlyGroup WhereToGroup<TCollection, TAspect>(this TCollection entities, out TAspect aspect)
where TAspect : EcsAspect where TAspect : EcsAspect
where TCollection : IEntityStorage where TCollection : IEntityStorage
{ {

View File

@ -1,5 +1,4 @@
using DCFApixels.DragonECS.Utils; using System;
using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;