2022-04-08 05:52:03 +00:00
|
|
|
|
// NOTE: these methods are very inefficient
|
2022-03-25 19:32:35 +00:00
|
|
|
|
// this class should only be used in debugging contexts!!
|
2022-04-03 21:46:52 +00:00
|
|
|
|
#if DEBUG
|
2022-04-08 05:52:03 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2023-11-21 19:50:17 +00:00
|
|
|
|
namespace MoonTools.ECS;
|
2022-03-25 19:32:35 +00:00
|
|
|
|
|
2023-11-21 19:50:17 +00:00
|
|
|
|
public abstract class DebugSystem : System
|
|
|
|
|
{
|
|
|
|
|
protected DebugSystem(World world) : base(world) { }
|
2023-10-13 20:42:22 +00:00
|
|
|
|
|
2023-11-21 19:50:17 +00:00
|
|
|
|
protected World.ComponentTypeEnumerator Debug_GetAllComponentTypes(Entity entity) => World.Debug_GetAllComponentTypes(entity);
|
|
|
|
|
protected IEnumerable<Entity> Debug_GetEntities(Type componentType) => World.Debug_GetEntities(componentType);
|
|
|
|
|
protected IEnumerable<Type> Debug_SearchComponentType(string typeString) => World.Debug_SearchComponentType(typeString);
|
2022-03-25 19:32:35 +00:00
|
|
|
|
}
|
2022-04-03 21:46:52 +00:00
|
|
|
|
#endif
|