32 lines
958 B
C#
32 lines
958 B
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using CircuitsV2.CircuitNodes;
|
|
using Cpp2IlInjected;
|
|
using Google.Protobuf;
|
|
|
|
namespace CircuitsV2.Graph
|
|
{
|
|
// Token: 0x02000276 RID: 630
|
|
[Token(Token = "0x200019D")]
|
|
[StructLayout(3)]
|
|
public abstract class CircuitGraphObject<TProto> : CircuitGraphObject, ICircuitSerializable<TProto>, ICircuitDeserializable<TProto> where TProto : IMessage
|
|
{
|
|
// Token: 0x06001590 RID: 5520 RVA: 0x00002096 File Offset: 0x00000296
|
|
[Token(Token = "0x600117C")]
|
|
[Address(RVA = "0x241E660", Offset = "0x241D060", VA = "0x18241E660")]
|
|
protected CircuitGraphObject(CircuitContext context, Guid objectId)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001591 RID: 5521
|
|
[Token(Token = "0x600117D")]
|
|
[Address(Slot = "20")]
|
|
public abstract TProto SerializeToProtobuf();
|
|
|
|
// Token: 0x06001592 RID: 5522
|
|
[Token(Token = "0x600117E")]
|
|
[Address(Slot = "21")]
|
|
public abstract void DeserializeFromProtobuf(TProto protobufData);
|
|
}
|
|
}
|