public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder) { var list = getter(owner); builder.writer.Write(list.Count); builder.WriteManagedReferences(list); }
public override void BuildUndo(object target, UndoSnapshotBuilder builder) { var t = target as T; for (var i = firstWritableProperty; i < properties.Length; i++) { properties[i].SerializeToUndoBuilder(t, builder); } }
public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder) { var list = getter(owner); builder.writer.Write(list.Count); foreach (var elem in list) { ValueSerializer.WriteToUndoSnapshot(builder, elem); } }
public override void BuildUndo(object target, UndoSnapshotBuilder builder) { var t = target as T; foreach (var property in properties) { if (property.type == PropertyType.Normal) { property.SerializeToUndoBuilder(t, builder); } } }
public abstract void BuildUndo(object target, UndoSnapshotBuilder builder);
public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, int value) => writer.writer.Write(value);
public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, T value) { writer.WriteManagedReference(value); builder.BuildUndo(value, writer); }
public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, T value) => writer.writer.Write(Unsafe.As <T, int>(ref value));
public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, T value) => writer.WriteManagedReference(value);
public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder) => ValueSerializer.WriteToUndoSnapshot(builder, getter(owner));
public abstract void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder);
public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder) { builder.WriteManagedReference(getter(owner)); }
public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder) { }