123456789101112131415161718192021222324252627282930313233 |
- //------------------------------------------------------------
- // 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 MetaClient
- {
- 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);
- }
- }
- }
|