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

16 lines
341 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
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);
}
}
}