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.

22 lines
666B

  1. namespace Svelto.ECS
  2. {
  3. /// <summary>
  4. /// When implementing IEntityDescriptor directly the pattern to use is the following:
  5. ///
  6. /// class DoofusEntityDescriptor: IEntityDescriptor
  7. /// {
  8. /// public IComponentBuilder[] componentsToBuild { get; } =
  9. /// {
  10. /// new ComponentBuilder<PositionEntityComponent>()
  11. /// , new ComponentBuilder<DOTSEntityComponent>()
  12. /// , new ComponentBuilder<VelocityEntityComponent>()
  13. /// , new ComponentBuilder<SpeedEntityComponent>()
  14. /// , ...
  15. /// };
  16. /// }
  17. /// </summary>
  18. public interface IEntityDescriptor
  19. {
  20. IComponentBuilder[] componentsToBuild { get; }
  21. }
  22. }