新增角色相关信息
This commit is contained in:
30
Entity/Game/Player/Player.cs
Normal file
30
Entity/Game/Player/Player.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using Fantasy.Entitas;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using MongoDB.Bson.Serialization.Options;
|
||||
|
||||
namespace NB.Game;
|
||||
|
||||
public sealed class Player : Entity
|
||||
{
|
||||
public long CreateTime;
|
||||
public long LoginTime;
|
||||
|
||||
public PlayerBasic Basic = new PlayerBasic();
|
||||
public PlayerStatistics Statistics = new PlayerStatistics();
|
||||
public PlayerDayFlags DayFlags = new PlayerDayFlags();
|
||||
|
||||
[BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
|
||||
public Dictionary<int, int> Currency = new();
|
||||
|
||||
[BsonIgnore] public long SessionRunTimeId;
|
||||
|
||||
/// <summary>
|
||||
/// 需要保存数据库
|
||||
/// </summary>
|
||||
[BsonIgnore] public bool NeedSave;
|
||||
|
||||
/// <summary>
|
||||
/// 最后保存时间
|
||||
/// </summary>
|
||||
[BsonIgnore] public long LastSaveTime;
|
||||
}
|
||||
Reference in New Issue
Block a user