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
375B

  1. #if UNITY_5 || UNITY_5_3_OR_NEWER
  2. namespace Svelto.ECS
  3. {
  4. public class GenericEntityDescriptorHolder<T>:
  5. UnityEngine.MonoBehaviour, IEntityDescriptorHolder
  6. where T: class, IEntityDescriptor, new()
  7. {
  8. public EntityDescriptorInfo RetrieveDescriptor()
  9. {
  10. return EntityDescriptorTemplate<T>.Default;
  11. }
  12. }
  13. }
  14. #endif