Table of Contents

Method EnsureRestoreAssetsAsync

Namespace
GrindFest
Assembly
GrindFest.dll

EnsureRestoreAssetsAsync(SaveData)

Residency barrier for the assets MakeParty(SaveData, Party) destroys the save without.

MakeParty and LoadItem are synchronous on purpose — no synchronous loading door exists anywhere in the content platform — so the way to guarantee an asset is there is to await it at a setup boundary like this one, before the synchronous restore runs. That is the same shape as every other boot prerequisite (world generation, item prefabs) and it is the only one that keeps a cold cache from quietly turning into a missing stash.

public static Task EnsureRestoreAssetsAsync(SaveData saveData)

Parameters

saveData SaveData

Returns

Task