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
41 lines
648 B
C#
41 lines
648 B
C#
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
|
|
}
|
|
} |