120 lines
2.1 KiB
C#
120 lines
2.1 KiB
C#
// ***********************************************************************
|
|
// Assembly : Unity
|
|
// Author : Kimch
|
|
// Created :
|
|
//
|
|
// Last Modified By : Kimch
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "PlayerInfo" company=""></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
namespace G
|
|
{
|
|
/// <summary>
|
|
/// 角色相关
|
|
/// </summary>
|
|
public class PlayerInfo
|
|
{
|
|
public PlayerInfo(long id)
|
|
{
|
|
this.id = id;
|
|
}
|
|
|
|
#region 角色属性
|
|
|
|
/// <summary>
|
|
/// 角色Id
|
|
/// </summary>
|
|
public long id
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
int _itemId = 30001;
|
|
public int itemId
|
|
{
|
|
set { _itemId = value; }
|
|
get { return _itemId; }
|
|
}
|
|
/// <summary>
|
|
/// 等级
|
|
/// </summary>
|
|
public int grade
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 昵称
|
|
/// </summary>
|
|
public string nickName
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 自我介绍
|
|
/// </summary>
|
|
public string selfIntro
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
private string _headURL;
|
|
/// <summary>
|
|
/// 头像
|
|
/// </summary>
|
|
public string headURL
|
|
{
|
|
get { return _headURL; }
|
|
set
|
|
{
|
|
if (!string.IsNullOrEmpty(value))
|
|
{
|
|
_headURL = value;
|
|
}
|
|
else
|
|
{
|
|
_headURL = "Icon_Touxiang1_01";
|
|
}
|
|
}
|
|
}
|
|
|
|
//private readonly Dictionary<int, int> _curWears = new Dictionary<int, int>((int)WearPosition.kMax);
|
|
///// <summary>
|
|
///// 当前装备([装扮位置,装扮Id])
|
|
///// </summary>
|
|
//public Dictionary<int, int> curWears
|
|
//{
|
|
// get
|
|
// {
|
|
// return _curWears;
|
|
// }
|
|
//}
|
|
|
|
//private readonly Dictionary<int, int> _curMakeups = new Dictionary<int, int>((int)KRoleDefine.MakeupType.MAX);
|
|
///// <summary>
|
|
///// 当前妆容([装扮位置,装扮Id])
|
|
///// </summary>
|
|
//public Dictionary<int, int> curMakeups
|
|
//{
|
|
// get
|
|
// {
|
|
// return _curMakeups;
|
|
// }
|
|
//}
|
|
|
|
//public byte[] dnaInfos
|
|
//{
|
|
// get;
|
|
// set;
|
|
//}
|
|
|
|
#endregion
|
|
}
|
|
}
|