mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
23
Assets/GameScripts/DotNet/Core/Object/ProtoObject.cs
Normal file
23
Assets/GameScripts/DotNet/Core/Object/ProtoObject.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user