feat: initial commit - HJHA game server full source
6 major server modules (PdkFriendServer/GlobalSever/ServerCore/GameModule/GameNetModule) + game logic (GameFix/GameDAL/ServerData) + network layer (NetWorkMessage) + data layer (ObjectModel) + utilities (MrWu/Core/Config/CloudAPI/dll) + adapters (zyxAdapter/base) .NET 8.0 C# solution, 16 projects, 958 source files
This commit is contained in:
41
NetWorkMessage/Message/Base/MessageData.cs
Normal file
41
NetWorkMessage/Message/Base/MessageData.cs
Normal file
@ -0,0 +1,41 @@
|
||||
using MessagePack;
|
||||
#if Server
|
||||
using Server.Core;
|
||||
#else
|
||||
using GameFramework;
|
||||
#endif
|
||||
|
||||
namespace GameMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// 消息对象
|
||||
/// </summary>
|
||||
public abstract class MessageData
|
||||
: IReference
|
||||
{
|
||||
#if Server
|
||||
[IgnoreMember]
|
||||
public bool IsFromPool
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
[IgnoreMember]
|
||||
public long ReferenceId
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
|
||||
}
|
||||
#else
|
||||
public virtual void Clear()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user