Browse Source

fix compiling errors

tags/Rel25b
sebas77 6 years ago
parent
commit
5651416785
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs
  2. +1
    -1
      Svelto.ECS/IEntityDescriptorHolder.cs

+ 2
- 2
Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs View File

@@ -3,9 +3,9 @@ namespace Svelto.ECS
{
public class GenericEntityDescriptorHolder<T>:
UnityEngine.MonoBehaviour , IEntityDescriptorHolder
where T: class, IEntityDescriptor, new()
where T: IEntityDescriptor, new()
{
public EntityDescriptorInfo<T> RetrieveDescriptorInfo<T>()
public EntityDescriptorInfo<T> RetrieveDescriptorInfo<T>() where T : IEntityDescriptor, new()
{
return EntityDescriptorTemplate<T>.Info;
}


+ 1
- 1
Svelto.ECS/IEntityDescriptorHolder.cs View File

@@ -2,6 +2,6 @@ namespace Svelto.ECS
{
public interface IEntityDescriptorHolder
{
EntityDescriptorInfo<T> RetrieveDescriptorInfo<T>() where T : IEntityDescriptor;
EntityDescriptorInfo<T> RetrieveDescriptorInfo<T>() where T : IEntityDescriptor, new();
}
}

Loading…
Cancel
Save