applyStoreDocsfunctionnacatamalon
applyStoreDocs(docs: typeOperator) => voidInstalls what a project's store files say: over the stores that exist, and as stores of their own for the ones nothing has declared.
Both halves matter and they are not the same. Over an existing store it is a layer: the code declared the floor and the file lands on top of it key by key, so a field the file does not mention keeps what the code gave it. For a key no code has declared it builds the store outright, which is what lets a tool add state to a project with no file to write and no module to import.
A store built that way is held as waiting for its code: if the file that declares it turns up
later, createGameStore takes over that very object instead of making a second one. That is the
ordinary order inside an editor, where the stores of a project are read when it opens and the
code that declares one only runs when a scene reaches for it.
It can be called at any point in a start-up, which is the property to keep: a packaged game imports its stores while the modules evaluate, long before this runs, and an editor does it the other way round.
Parámetros
docstypeOperatorThe files, already read with
parseStoreDoc.