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.

17 lines
424B

  1. namespace Svelto.ECS.Serialization
  2. {
  3. public class DontSerialize<T> : ISerializer<T> where T : unmanaged, IEntityStruct
  4. {
  5. public uint size => 0;
  6. public bool Serialize(in T value, ISerializationData serializationData)
  7. {
  8. return false;
  9. }
  10. public bool Deserialize(ref T value, ISerializationData serializationData)
  11. {
  12. return false;
  13. }
  14. }
  15. }