新增角色相关信息
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
using Fantasy.Entitas;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class Player : Entity
|
||||
{
|
||||
public long CreateTime;
|
||||
public long LoginTime;
|
||||
|
||||
[BsonIgnore]
|
||||
public long SessionRunTimeId;
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class PlayerFlagComponent : Entity
|
||||
{
|
||||
public bool Kick { get; set; }
|
||||
|
||||
public long AccountID;
|
||||
|
||||
// 有一种可能,当在Account在其他地方被销毁
|
||||
// 这时候因为这个Account是会回收到池子中,所以这个引用还是有效的
|
||||
// 那这时候就会出现这个引用的Account可能是其他用户的了。
|
||||
public EntityReference<Player> Player;
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class PlayerManageComponent : Entity
|
||||
{
|
||||
public readonly Dictionary<long, Player> Players = new();
|
||||
}
|
||||
10
Entity/Gate/SessionPlayerComponent.cs
Normal file
10
Entity/Gate/SessionPlayerComponent.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using Fantasy.Entitas;
|
||||
|
||||
namespace NB.Gate;
|
||||
|
||||
public sealed class SessionPlayerComponent : Entity
|
||||
{
|
||||
public bool Kick { get; set; }
|
||||
|
||||
public long AccountID;
|
||||
}
|
||||
Reference in New Issue
Block a user