zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Model/Core/Object/ProtoObject.cs

16 lines
341 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using ProtoBuf;
namespace ET
{
public class ProtoObject: Object
{
public object Clone()
{
byte[] bytes = ProtobufHelper.ToBytes(this);
return ProtobufHelper.FromBytes(this.GetType(), bytes, 0, bytes.Length);
}
}
}