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
64 lines
1.5 KiB
C#
64 lines
1.5 KiB
C#
/********************************
|
|
*
|
|
* 作者:吴隆健
|
|
* 创建时间: 2019/7/6 15:13:58
|
|
*
|
|
********************************/
|
|
|
|
using System;
|
|
using MrWu.Basic;
|
|
using System.Text;
|
|
|
|
namespace Game.Shadow{
|
|
/// <summary>
|
|
/// 影子
|
|
/// </summary>
|
|
public class Shadow {
|
|
/// <summary>
|
|
/// 影子的名字
|
|
/// </summary>
|
|
public string name;
|
|
|
|
/// <summary>
|
|
/// 影子的性别
|
|
/// </summary>
|
|
public int sex;
|
|
|
|
/// <summary>
|
|
/// 头像
|
|
/// </summary>
|
|
public string photo;
|
|
|
|
/// <summary>
|
|
/// 名字是否被用过
|
|
/// </summary>
|
|
public bool isGetName;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="name"></param>
|
|
/// <param name="sex"></param>
|
|
public Shadow(string name,string photo,int sex) {
|
|
this.name = name;
|
|
this.photo = photo;
|
|
this.sex = sex;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public override string ToString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
int wight = -15;
|
|
sb.AppendLine(string.Empty);
|
|
sb.AppendLine(BaseFun.Align("name:",name,wight));
|
|
sb.AppendLine(BaseFun.Align("sex:",sex,wight));
|
|
return sb.ToString();
|
|
|
|
}
|
|
|
|
}
|
|
}
|