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
27 lines
579 B
C#
27 lines
579 B
C#
using System;
|
|
using Server.Pack;
|
|
|
|
namespace Server
|
|
{
|
|
/// <summary>
|
|
/// 游戏消息处理
|
|
/// </summary>
|
|
public interface IGameMessage<T>
|
|
{
|
|
|
|
/// <summary>
|
|
/// 处理子游戏包
|
|
/// </summary>
|
|
/// <param name="pack"></param>
|
|
void DoZyxPack(T pack);
|
|
|
|
/// <summary>
|
|
/// 处理聊天消息
|
|
/// </summary>
|
|
/// <param name="pack"></param>
|
|
/// <returns>是否处理完true 表示不用下级做处理了</returns>
|
|
bool DoChatPack(T pack);
|
|
|
|
}
|
|
}
|