Files
TEngine/Assets/GameScripts/DotNet/Core/Object/ProtoObject.cs
ALEXTANG 336d4b2eb9 [+] 接入ET8服务端
[+] 接入ET8服务端
2023-07-13 12:23:48 +08:00

23 lines
473 B
C#

using System;
using System.ComponentModel;
namespace ET
{
public abstract class ProtoObject: Object, ISupportInitialize
{
public object Clone()
{
byte[] bytes = MongoHelper.Serialize(this);
return MongoHelper.Deserialize(this.GetType(), bytes, 0, bytes.Length);
}
public virtual void BeginInit()
{
}
public virtual void EndInit()
{
}
}
}