Skip to content

Commit 7143b4e

Browse files
committed
[增加] 增加协议对象的对象池接口实现
1 parent 041cd40 commit 7143b4e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Runtime/Network/Base/MessageObject.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace GameFrameX.Network.Runtime
1212
#if ENABLE_GAME_FRAME_X_PROTOBUF
1313
[ProtoContract]
1414
#endif
15-
public class MessageObject
15+
public class MessageObject : IReference
1616
{
1717
/// <summary>
1818
/// 消息唯一编号
@@ -45,5 +45,12 @@ public override string ToString()
4545
{
4646
return Utility.Json.ToJson(this);
4747
}
48+
49+
/// <summary>
50+
/// 清理引用。
51+
/// </summary>
52+
public virtual void Clear()
53+
{
54+
}
4855
}
4956
}

0 commit comments

Comments
 (0)