Пример #1
0
        public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder)
        {
            var list = getter(owner);

            builder.writer.Write(list.Count);
            builder.WriteManagedReferences(list);
        }
Пример #2
0
            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);
                }
            }
Пример #3
0
        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);
            }
        }
Пример #4
0
            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);
                    }
                }
            }
Пример #5
0
 public abstract void BuildUndo(object target, UndoSnapshotBuilder builder);
Пример #6
0
 public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, int value) => writer.writer.Write(value);
Пример #7
0
 public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, T value)
 {
     writer.WriteManagedReference(value);
     builder.BuildUndo(value, writer);
 }
Пример #8
0
 public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, T value) => writer.writer.Write(Unsafe.As <T, int>(ref value));
Пример #9
0
 public override void WriteToUndoSnapshot(UndoSnapshotBuilder writer, T value) => writer.WriteManagedReference(value);
Пример #10
0
 public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder) => ValueSerializer.WriteToUndoSnapshot(builder, getter(owner));
Пример #11
0
 public abstract void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder);
Пример #12
0
 public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder)
 {
     builder.WriteManagedReference(getter(owner));
 }
Пример #13
0
 public override void SerializeToUndoBuilder(TOwner owner, UndoSnapshotBuilder builder)
 {
 }