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.

14 lines
372B

  1. namespace Svelto.ECS
  2. {
  3. public static class EntityDescriptorExtension
  4. {
  5. public static bool IsUnmanaged(this IEntityDescriptor descriptor)
  6. {
  7. foreach (var component in descriptor.componentsToBuild)
  8. if (component.isUnmanaged == false)
  9. return false;
  10. return true;
  11. }
  12. }
  13. }