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
48 lines
1.0 KiB
C#
48 lines
1.0 KiB
C#
using MessagePack;
|
|
#if GameClient
|
|
using GameFramework;
|
|
#endif
|
|
|
|
namespace GameMessage
|
|
{
|
|
/// <summary>
|
|
/// 祈福请求
|
|
/// </summary>
|
|
[Message(MessageCode.PrayRequest)]
|
|
[MessagePackObject()]
|
|
public class PrayRequest : MessageData
|
|
{
|
|
[Key(0)]
|
|
public int PrayId;
|
|
|
|
[Key(1)]
|
|
public int DiamondValue;
|
|
|
|
#if GameClient
|
|
public static PrayRequest Create(int prayId,int diamondValue)
|
|
{
|
|
PrayRequest request = ReferencePool.Acquire<PrayRequest>();
|
|
request.PrayId = prayId;
|
|
request.DiamondValue = diamondValue;
|
|
return request;
|
|
}
|
|
#endif
|
|
}
|
|
|
|
/// <summary>
|
|
/// 祈福响应
|
|
/// </summary>
|
|
[Message(MessageCode.PrayResponse)]
|
|
[MessagePackObject()]
|
|
public class PrayResponse : MessageData
|
|
{
|
|
[Key(0)]
|
|
public int PrayId;
|
|
|
|
[Key(1)]
|
|
public int DiamondValue;
|
|
|
|
[Key(2)]
|
|
public int ResultCode;
|
|
}
|
|
} |