mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
完善登录注册Demo
完善登录注册Demo
This commit is contained in:
38
DotNet/Logic/src/Model/CharacterInfo.cs
Normal file
38
DotNet/Logic/src/Model/CharacterInfo.cs
Normal 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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user