mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
38 lines
661 B
C#
38 lines
661 B
C#
namespace TEngine.Logic;
|
|
|
|
public class CharacterInfoAwakeSystem : AwakeSystem<CharacterInfo>
|
|
{
|
|
protected override void Awake(CharacterInfo self)
|
|
{
|
|
self.Awake();
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 角色信息。
|
|
/// </summary>
|
|
public class CharacterInfo : Entity
|
|
{
|
|
//昵称
|
|
public string UserName { get; set; }
|
|
|
|
//等级
|
|
public int Level { get; set; }
|
|
|
|
//余额
|
|
public long Money { get; set; }
|
|
|
|
|
|
//上次游戏角色序列 1/2/3
|
|
public int LastPlay { get; set; }
|
|
|
|
//public List<Ca>
|
|
public void Awake()
|
|
{
|
|
UserName = string.Empty;
|
|
Level = 1;
|
|
Money = 10000;
|
|
LastPlay = 0;
|
|
}
|
|
|
|
} |