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:
68
Config/Code/RedisConfig.cs
Normal file
68
Config/Code/RedisConfig.cs
Normal file
@ -0,0 +1,68 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
|
||||
|
||||
namespace Server.Config
|
||||
{
|
||||
public sealed partial class RedisConfig : Luban.BeanBase
|
||||
{
|
||||
public RedisConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
Name = _buf.ReadString();
|
||||
ConnectTimeOut = _buf.ReadInt();
|
||||
Port = _buf.ReadInt();
|
||||
Host = _buf.ReadString();
|
||||
}
|
||||
|
||||
public static RedisConfig DeserializeRedisConfig(ByteBuf _buf)
|
||||
{
|
||||
return new RedisConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// 超时时间(单位毫秒)
|
||||
/// </summary>
|
||||
public readonly int ConnectTimeOut;
|
||||
/// <summary>
|
||||
/// 端口
|
||||
/// </summary>
|
||||
public readonly int Port;
|
||||
/// <summary>
|
||||
/// 地址
|
||||
/// </summary>
|
||||
public readonly string Host;
|
||||
|
||||
public const int __ID__ = -731728771;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "name:" + Name + ","
|
||||
+ "connectTimeOut:" + ConnectTimeOut + ","
|
||||
+ "port:" + Port + ","
|
||||
+ "host:" + Host + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user