12 lines
410 B
C#
12 lines
410 B
C#
namespace XWorld.Server.Gateway
|
|
{
|
|
public sealed class Session
|
|
{
|
|
public int PlayerId;
|
|
public IClientConnection Connection; // 当前连接;断线中仍保留会话但 Connected=false
|
|
public bool Connected;
|
|
public string RoomId; // 所在房间,可空
|
|
public long DisconnectedAtTick; // 断线时的逻辑 tick,用于窗口过期
|
|
}
|
|
}
|