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.

51 lines
2.5KB

  1. using System;
  2. using Svelto.DataStructures;
  3. namespace Svelto.ECS
  4. {
  5. public interface IObsoleteInterfaceDb
  6. {
  7. /// <summary>
  8. /// All the EntityView related methods are left for back compatibility, but
  9. /// shouldn't be used anymore. Always pick EntityViewStruct or EntityStruct
  10. /// over EntityView
  11. /// </summary>
  12. [Obsolete]
  13. ReadOnlyCollectionStruct<T> QueryEntityViews<T>(int group) where T : class, IEntityStruct;
  14. [Obsolete]
  15. ReadOnlyCollectionStruct<T> QueryEntityViews<T>(ExclusiveGroup.ExclusiveGroupStruct group) where T : class, IEntityStruct;
  16. /// <summary>
  17. /// All the EntityView related methods are left for back compatibility, but
  18. /// shouldn't be used anymore. Always pick EntityViewStruct or EntityStruct
  19. /// over EntityView
  20. /// </summary>
  21. [Obsolete]
  22. bool TryQueryEntityView<T>(EGID egid, out T entityView) where T : class, IEntityStruct;
  23. [Obsolete]
  24. bool TryQueryEntityView<T>(int id, ExclusiveGroup.ExclusiveGroupStruct group, out T entityView) where T : class, IEntityStruct;
  25. /// <summary>
  26. /// All the EntityView related methods are left for back compatibility, but
  27. /// shouldn't be used anymore. Always pick EntityViewStruct or EntityStruct
  28. /// over EntityView
  29. /// </summary>
  30. [Obsolete]
  31. T QueryEntityView<T>(EGID egid) where T : class, IEntityStruct;
  32. [Obsolete]
  33. T QueryEntityView<T>(int id, ExclusiveGroup.ExclusiveGroupStruct group) where T : class, IEntityStruct;
  34. /// <summary>
  35. /// ECS is meant to work on a set of Entities. Working on a single entity is sometime necessary, but using
  36. /// the following functions inside a loop would be a mistake as performance can be significantly impacted
  37. /// return the buffer and the index of the entity inside the buffer using the input EGID
  38. /// </summary>
  39. /// <param name="entityGid"></param>
  40. /// <param name="index"></param>
  41. /// <typeparam name="T"></typeparam>
  42. /// <returns></returns>
  43. [Obsolete]
  44. T[] QueryEntitiesAndIndex<T>(EGID entityGid, out uint index) where T : IEntityStruct;
  45. [Obsolete]
  46. T[] QueryEntitiesAndIndex<T>(int id, ExclusiveGroup.ExclusiveGroupStruct group, out uint index) where T : IEntityStruct;
  47. [Obsolete]
  48. T[] QueryEntitiesAndIndex<T>(int id, int group, out uint index) where T : IEntityStruct;
  49. }
  50. }