class

FSectorCloudResidency

Module
Game
Header
#include "Streaming/SectorCloudResidency.h"
Namespace
Mowo

Constructors

SignatureNameDescription
FSectorCloudResidency() = defaultFSectorCloudResidency
~FSectorCloudResidency()~FSectorCloudResidency
FSectorCloudResidency(const FSectorCloudResidency&) = deleteFSectorCloudResidency

Public functions

ReturnsNameDescription
FSectorCloudResidency&operator=
voidBind
voidUnbind
voidConfigure
const FSettings&GetSettings
voidOnSectorUnloadedBoth take the cell rectangle from the streaming grid; a chunk belongs to the cell its cloud sector's centre falls in.
voidOnSectorLoaded
voidTickPending
uint32_tFlushForSaveThe save barrier: waits for in-flight park IO, then folds every parked chunk back into its accumulator.
boolIsSectorParked
uint32_tParkedSectorCount
uint32_tParkedPointCount
uint32_tPendingIoCount
uint64_tPointsParked
uint64_tPointsRestored
std::stringParkPathForThe park file for one cell of one cloud.
uint32_tReclaimOrphanedParksPark files outlive a process that dies with cells parked, and nothing reads one without the record that named it.

Function details

FSectorCloudResidency

C++
FSectorCloudResidency() = default

~FSectorCloudResidency

C++
~FSectorCloudResidency()

FSectorCloudResidency

C++
FSectorCloudResidency(const FSectorCloudResidency&) = delete

operator=

C++
FSectorCloudResidency& operator=(const FSectorCloudResidency&) = delete

Bind

C++
void Bind(Scene* scene)

Unbind

C++
void Unbind()

Configure

C++
void Configure(const FSettings& settings)

GetSettings

C++
const FSettings& GetSettings() const

OnSectorUnloaded

C++
void OnSectorUnloaded(const SectorCoord& coord, float sectorSize)

Both take the cell rectangle from the streaming grid; a chunk belongs to the cell its cloud sector's centre falls in.

OnSectorLoaded

C++
void OnSectorLoaded(const SectorCoord& coord, float sectorSize)

TickPending

C++
void TickPending()

FlushForSave

C++
uint32_t FlushForSave()

The save barrier: waits for in-flight park IO, then folds every parked chunk back into its accumulator. Returns the number of points folded.

IsSectorParked

C++
bool IsSectorParked(const SectorCoord& coord) const

ParkedSectorCount

C++
uint32_t ParkedSectorCount() const

ParkedPointCount

C++
uint32_t ParkedPointCount() const

PendingIoCount

C++
uint32_t PendingIoCount() const

PointsParked

C++
uint64_t PointsParked() const

PointsRestored

C++
uint64_t PointsRestored() const

ParkPathFor

C++
std::string ParkPathFor(const SectorCoord& coord, EntityID cloud) const

The park file for one cell of one cloud. Public because a park file is a plain .mpcl stream and both the tests and the cook tooling read them.

ReclaimOrphanedParks

C++
static uint32_t ReclaimOrphanedParks(const std::string& baseDirectory)

Park files outlive a process that dies with cells parked, and nothing reads one without the record that named it. Every residency therefore parks into "<base>/<pid>-<n>", and this removes the session directories under baseDirectory whose process is gone, plus loose park files from before sessions had directories. A running process's session — another game instance, another residency in this one — is never touched. Runs on the first park of every residency; returns the entries removed.

Generated from Streaming/SectorCloudResidency.h via game.json · Nov 5, 2026Version 1.0.0