Skip to content

Flowchart: GameManifest Creation

This flowchart outlines the process of creating a GameManifest file, either programmatically via a builder or automatically through a generation service.

Manifest Creation Workflow:

  1. Initiation: The process starts from a source, like a local folder of a mod, an existing game installation, or a service that needs to construct a manifest dynamically.
  2. Service Layer (Optional): For common tasks like creating a manifest from a directory, the IManifestGenerationService provides high-level methods. This service internally uses the builder.
  3. Builder Pattern: The IContentManifestBuilder provides a fluent API to construct the GameManifest step-by-step. This allows for fine-grained control over every property of the manifest.
  4. File Population: Methods like AddFileAsync and AddFilesFromDirectoryAsync are used to populate the Files list. These methods calculate hashes and other metadata automatically.
  5. Finalization: The Build() method is called to assemble all the provided information into a final, validated GameManifest object.
  6. Output: The resulting GameManifest object can be used by the system or serialized to a manifest.json file for distribution.

GeneralsHub Docs