Files
TEngine/DotNet/Logic/src/Model/CharacterInfo.cs
ALEXTANG 9cd0bac81e 完善登录注册Demo
完善登录注册Demo
2023-07-17 01:00:10 +08:00

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;
}
}