Mirror of Svelto.ECS because we're a fan of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
707B

  1. using Svelto.DataStructures;
  2. namespace Svelto.ECS
  3. {
  4. public interface IEngineNodeDB
  5. {
  6. FasterReadOnlyList<T> QueryNodes<T>();
  7. FasterReadOnlyList<T> QueryMetaNodes<T>();
  8. FasterReadOnlyList<T> QueryGroupedNodes<T>(int group);
  9. T[] QueryNodesAsArray<T>(out int count) where T:struct;
  10. ReadOnlyDictionary<int, T> QueryIndexableNodes<T>() where T:NodeWithID;
  11. bool TryQueryNode<T>(int ID, out T node) where T:NodeWithID;
  12. T QueryNode<T>(int ID) where T:NodeWithID;
  13. bool TryQueryMetaNode<T>(int metaEntityID, out T node) where T:NodeWithID;
  14. T QueryMetaNode<T>(int metaEntityID) where T:NodeWithID;
  15. }
  16. }