Struct PendingSceneInfo
- Namespace
- FishMMO.Server.Core.World.SceneServer
- Assembly
- FishMMO.Server.dll
Combines a pending scene load request with its enqueue time, eliminating the need for separate synchronized dictionaries. Previously PendingScenes (SceneData) and PendingSceneEnqueueUtcBySceneId (DateTime) were tracked in two separate maps, creating a dual-map sync risk.
public readonly struct PendingSceneInfo
- Inherited Members
Constructors
PendingSceneInfo(SceneData, double, double)
Initializes a new pending scene info.
public PendingSceneInfo(SceneData sceneData, double enqueuedAt, double rowCreatedAt)
Parameters
sceneDataSceneDataThe database scene data for this pending load request.
enqueuedAtdoubleMonotonic time at which this request was taken on.
rowCreatedAtdoubleMonotonic time at which the scene row was created.
Fields
EnqueuedAt
When this request was taken on, in seconds on MonotonicClock. Bounds how long the load may take.
public readonly double EnqueuedAt
Field Value
RowCreatedAt
When the scene row was created, in seconds on MonotonicClock. Carried to the loaded instance as CreatedAt.
public readonly double RowCreatedAt
Field Value
SceneData
The database scene data for this pending load request.
public readonly SceneData SceneData