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.

18 lines
498B

  1. using System;
  2. namespace Svelto.ECS
  3. {
  4. public static class EntityDescriptorTemplate<TType> where TType : IEntityDescriptor, new()
  5. {
  6. static EntityDescriptorTemplate()
  7. {
  8. realDescriptor = new TType();
  9. descriptor = realDescriptor;
  10. }
  11. public static TType realDescriptor { get; }
  12. public static Type type => typeof(TType);
  13. public static IEntityDescriptor descriptor { get; }
  14. }
  15. }