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.

13 lines
349B

  1. #if DEBUG && !PROFILE_SVELTO
  2. #endif
  3. namespace Svelto.ECS.Serialization
  4. {
  5. public interface IComponentSerializer<T> where T : unmanaged, IEntityComponent
  6. {
  7. bool Serialize(in T value, ISerializationData serializationData);
  8. bool Deserialize(ref T value, ISerializationData serializationData);
  9. uint size { get; }
  10. }
  11. }