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.

16 lines
588B

  1. namespace Svelto.ECS.Serialization
  2. {
  3. public static class SerializationEntityDescriptorTemplate<TType> where TType : ISerializableEntityDescriptor, new()
  4. {
  5. static SerializationEntityDescriptorTemplate()
  6. {
  7. var serializableEntityDescriptor = new TType();
  8. hash = serializableEntityDescriptor.hash;
  9. entityDescriptor = (ISerializableEntityDescriptor) EntityDescriptorTemplate<TType>.descriptor;
  10. }
  11. public static uint hash { get; }
  12. public static ISerializableEntityDescriptor entityDescriptor { get; }
  13. }
  14. }