Mirror of Svelto.ECS because we're a fan of it
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

18 рядки
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. }