16 lines
513 B
C#
16 lines
513 B
C#
using Fantasy.Entitas;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace Fantasy.Gate;
|
|
|
|
public sealed class GameAccount : Entity
|
|
{
|
|
// 1、可以拿ToKen的传递过来的AId来当这个组件的Id.
|
|
// 2、让这个Id自动生成、在组件里做一个变量来记录ToKen的AId。 public long AuthenticationId;
|
|
public long CreateTime;
|
|
public long LoginTime;
|
|
|
|
[BsonIgnore]
|
|
// BsonIgnore特性是让Bson保存到数据库中忽略掉这个字段。
|
|
public long SessionRunTimeId;
|
|
} |