Struct CharacterSessionInfo
- Namespace
- FishMMO.Server.Core.World.SceneServer
- Assembly
- FishMMO.Server.dll
Stores the session ownership token and server ID for a claimed character. Used to properly release character sessions via ReleaseAsync.
public readonly struct CharacterSessionInfo
- Inherited Members
Constructors
CharacterSessionInfo(Guid, long)
Initializes a new session info with the given ownership token and server ID.
public CharacterSessionInfo(Guid token, long serverID)
Parameters
tokenGuidThe session ownership token returned by TryClaimAsync.
serverIDlongThe server ID that owns this session.
Fields
ServerID
The server ID that owns this session.
public readonly long ServerID
Field Value
Token
The session ownership token returned by TryClaimAsync. Required for ReleaseAsync and RefreshSessionLeaseAsync.
public readonly Guid Token