mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
simple refactoring
This commit is contained in:
parent
6c449c94f6
commit
659b7fdb64
@ -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;
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user