Table of Contents

Class TribePreviews

Namespace
PolyMod.Managers
Assembly
PolyMod.dll

The manager for the world previews that the tribe selection screen shows. It changes the preview maps of tribes with the preview tiles from mods.

public static class TribePreviews
Inheritance
TribePreviews
Inherited Members

Methods

PreloadTribePreviews()

A Harmony postfix on TribePreviewRegistry.PreloadTribePreviews. It applies the preview tiles in PolyMod.Registry.tribePreviews to the preview of each tribe. The preview of a tribe has the name worldpreview_ and the tribe name. If the game has a preview with that name, the patch replaces it with the changed copy. If not, the patch changes a copy of the fallback preview and adds it to the list of previews.

[HarmonyPostfix]
[HarmonyPatch(typeof(TribePreviewRegistry), "PreloadTribePreviews")]
public static void PreloadTribePreviews()