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. }