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.
|
- namespace Svelto.ECS
- {
- public static class EntityDescriptorExtension
- {
- public static bool IsUnmanaged(this IEntityDescriptor descriptor)
- {
- foreach (IComponentBuilder component in descriptor.componentsToBuild)
- if (component.GetEntityComponentType() != typeof(EntityInfoComponent) && component.isUnmanaged == false)
- return false;
-
- return true;
- }
- }
- }
|