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:
10
GlobalSever/Core/EventDispatcher/GameMessageDispatcher.cs
Normal file
10
GlobalSever/Core/EventDispatcher/GameMessageDispatcher.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using NetWorkMessage;
|
||||
using Server.Core;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
public class GameMessageDispatcher : MultiHandleBaseDispatcher<GameMessageDispatcher,int,ClientMessage>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
9
GlobalSever/Core/EventDispatcher/GlobalDispatcher.cs
Normal file
9
GlobalSever/Core/EventDispatcher/GlobalDispatcher.cs
Normal file
@ -0,0 +1,9 @@
|
||||
using Server.Core;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
public class GlobalDispatcher : MultiHandleBaseDispatcher<GlobalDispatcher, uint, object>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
27
GlobalSever/Core/EventDispatcher/GlobalMsgId.cs
Normal file
27
GlobalSever/Core/EventDispatcher/GlobalMsgId.cs
Normal file
@ -0,0 +1,27 @@
|
||||
namespace Server
|
||||
{
|
||||
public static class GlobalMsgId
|
||||
{
|
||||
private static uint CorSur = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 模块节点死亡
|
||||
/// </summary>
|
||||
public static readonly uint ModuleNodeDie = CorSur++;
|
||||
|
||||
/// <summary>
|
||||
/// 模块节点崩溃
|
||||
/// </summary>
|
||||
public static readonly uint ModuleNodeCrash = CorSur++;
|
||||
|
||||
/// <summary>
|
||||
/// 游戏名称读取成功
|
||||
/// </summary>
|
||||
public static readonly uint GameNameReadSuccess = CorSur++;
|
||||
|
||||
/// <summary>
|
||||
/// 游戏更新通知器改变
|
||||
/// </summary>
|
||||
public static readonly uint GameUpdateNotifierChange = CorSur++;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user