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:
64
ServerData/Data/RemoteNodeInfo.cs
Normal file
64
ServerData/Data/RemoteNodeInfo.cs
Normal file
@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Server.Data {
|
||||
/// <summary>
|
||||
/// 远程节点信息
|
||||
/// </summary>
|
||||
public class RemoteNodeInfo {
|
||||
|
||||
/// <summary>
|
||||
/// 模块类型ID
|
||||
/// </summary>
|
||||
public int moduleId {
|
||||
get; set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 模块节点ID
|
||||
/// </summary>
|
||||
public int nodenum {
|
||||
get; set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 模块本地磁盘路径
|
||||
/// </summary>
|
||||
public string path {
|
||||
get; set;
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
return $"模块ID:{moduleId}, 节点ID:{nodenum}, 远程文件路径:{path}";
|
||||
;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Clone
|
||||
/// </summary>
|
||||
/// <returns>RemoteNodeInfo</returns>
|
||||
public RemoteNodeInfo Clone() {
|
||||
return new RemoteNodeInfo { moduleId = moduleId, nodenum = nodenum, path = path };
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 服务器指令
|
||||
/// </summary>
|
||||
public class ServerCmd {
|
||||
|
||||
/// <summary>
|
||||
/// 命令
|
||||
/// </summary>
|
||||
public string cmd;
|
||||
|
||||
/// <summary>
|
||||
/// 参数
|
||||
/// </summary>
|
||||
public RemoteNodeInfo parameter;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user