完善登录注册Demo

完善登录注册Demo
This commit is contained in:
ALEXTANG
2023-07-17 01:00:10 +08:00
parent 4abe10eecf
commit 9cd0bac81e
6 changed files with 113 additions and 8 deletions

View File

@@ -0,0 +1,38 @@
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;
}
}