mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 18:14:37 +08:00
Update EcsWorld.cs
This commit is contained in:
parent
9db3f192ac
commit
9a8e4a6995
@ -12,14 +12,14 @@ namespace DCFApixels.DragonECS
|
|||||||
|
|
||||||
public interface IEcsWorld
|
public interface IEcsWorld
|
||||||
{
|
{
|
||||||
//private float _timeScale;//TODO реализовать собсвенныйтайм склей для разных миров
|
|
||||||
|
|
||||||
#region Properties
|
#region Properties
|
||||||
|
//private float _timeScale;//TODO реализовать собсвенныйтайм склей для разных миров
|
||||||
public bool IsEmpty { get; }
|
public bool IsEmpty { get; }
|
||||||
public Type ArchetypeType { get; }
|
public Type ArchetypeType { get; }
|
||||||
public int ID { get; }
|
public int ID { get; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Methods
|
||||||
public EcsPool<T> GetPool<T>() where T : struct;
|
public EcsPool<T> GetPool<T>() where T : struct;
|
||||||
public EcsFilter GetFilter<TInc>() where TInc : struct, IInc;
|
public EcsFilter GetFilter<TInc>() where TInc : struct, IInc;
|
||||||
public EcsFilter GetFilter<TInc, TExc>() where TInc : struct, IInc where TExc : struct, IExc;
|
public EcsFilter GetFilter<TInc, TExc>() where TInc : struct, IInc where TExc : struct, IExc;
|
||||||
@ -32,6 +32,7 @@ namespace DCFApixels.DragonECS
|
|||||||
|
|
||||||
internal void OnEntityComponentAdded(int entityID, int changedPoolID);
|
internal void OnEntityComponentAdded(int entityID, int changedPoolID);
|
||||||
internal void OnEntityComponentRemoved(int entityID, int changedPoolID);
|
internal void OnEntityComponentRemoved(int entityID, int changedPoolID);
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class IEcsWorldExt
|
public static class IEcsWorldExt
|
||||||
@ -42,7 +43,6 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public abstract class EcsWorld
|
public abstract class EcsWorld
|
||||||
{
|
{
|
||||||
internal static IEcsWorld[] Worlds = new IEcsWorld[8];
|
internal static IEcsWorld[] Worlds = new IEcsWorld[8];
|
||||||
|
Loading…
Reference in New Issue
Block a user