diff --git a/Svelto.ECS/EnginesRootEntities.cs b/Svelto.ECS/EnginesRootEntities.cs index 8a1939b..d4ee5da 100644 --- a/Svelto.ECS/EnginesRootEntities.cs +++ b/Svelto.ECS/EnginesRootEntities.cs @@ -331,7 +331,7 @@ namespace Svelto.ECS _weakEngine.Target.BuildEntityInGroup(entityID, groupID, entityDescriptor, implementors); } - public void Preallocate(int size) where T : IEntityDescriptor, new() + public void PreallocateEntitySlots(int size) where T : IEntityDescriptor, new() { _weakEngine.Target.Preallocate(size); } diff --git a/Svelto.ECS/IEnginesInterfaces.cs b/Svelto.ECS/IEnginesInterfaces.cs index c29848b..19e935d 100644 --- a/Svelto.ECS/IEnginesInterfaces.cs +++ b/Svelto.ECS/IEnginesInterfaces.cs @@ -2,7 +2,7 @@ namespace Svelto.ECS { public interface IEntityFactory { - void Preallocate(int size) where T : IEntityDescriptor, new(); + void PreallocateEntitySlots(int size) where T : IEntityDescriptor, new(); void BuildEntity(int entityID, object[] implementors) where T:IEntityDescriptor, new(); void BuildEntity(int entityID, IEntityDescriptorInfo entityDescriptorInfo, object[] implementors);