33 lines
827 B
C#
33 lines
827 B
C#
//------------------------------------------------------------
|
|
// Game Framework
|
|
// Copyright © 2013-2021 Jiang Yin. All rights reserved.
|
|
// Homepage: https://gameframework.cn/
|
|
// Feedback: mailto:ellan@gameframework.cn
|
|
//------------------------------------------------------------
|
|
|
|
using GameFramework.Network;
|
|
using ProtoBuf;
|
|
|
|
namespace Network
|
|
{
|
|
public abstract class PacketBase : Packet, IExtensible
|
|
{
|
|
private IExtension m_ExtensionObject;
|
|
|
|
public PacketBase()
|
|
{
|
|
m_ExtensionObject = null;
|
|
}
|
|
|
|
public abstract PacketType PacketType
|
|
{
|
|
get;
|
|
}
|
|
|
|
IExtension IExtensible.GetExtensionObject(bool createIfMissing)
|
|
{
|
|
return Extensible.GetExtensionObject(ref m_ExtensionObject, createIfMissing);
|
|
}
|
|
}
|
|
}
|