From 5651416785197fdaeb4f8eb085eb25a21970fe2c Mon Sep 17 00:00:00 2001 From: sebas77 Date: Thu, 14 Jun 2018 19:45:40 +0100 Subject: [PATCH] fix compiling errors --- Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs | 4 ++-- Svelto.ECS/IEntityDescriptorHolder.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs b/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs index 78d6e1f..1add583 100644 --- a/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs +++ b/Svelto.ECS/Extensions/Unity/GenericEntityDescriptorHolder.cs @@ -3,9 +3,9 @@ namespace Svelto.ECS { public class GenericEntityDescriptorHolder: UnityEngine.MonoBehaviour , IEntityDescriptorHolder - where T: class, IEntityDescriptor, new() + where T: IEntityDescriptor, new() { - public EntityDescriptorInfo RetrieveDescriptorInfo() + public EntityDescriptorInfo RetrieveDescriptorInfo() where T : IEntityDescriptor, new() { return EntityDescriptorTemplate.Info; } diff --git a/Svelto.ECS/IEntityDescriptorHolder.cs b/Svelto.ECS/IEntityDescriptorHolder.cs index 785c5fb..0dace60 100644 --- a/Svelto.ECS/IEntityDescriptorHolder.cs +++ b/Svelto.ECS/IEntityDescriptorHolder.cs @@ -2,6 +2,6 @@ namespace Svelto.ECS { public interface IEntityDescriptorHolder { - EntityDescriptorInfo RetrieveDescriptorInfo() where T : IEntityDescriptor; + EntityDescriptorInfo RetrieveDescriptorInfo() where T : IEntityDescriptor, new(); } } \ No newline at end of file