Table of Contents

Class ContentHotReloadTests

Namespace
GrindFest
Assembly
GrindFest.dll

P5 gate (plan §6): a .json write inside a mod folder must re-merge the content database on its own — the file watcher, not a manual reload call — and everything resolved from the previous merge must see the new state (definitions re-resolve; MonsterPool's name caches are invalidated).

Writes its own temporary content mods, so it runs anywhere; restores the database in the finally blocks.

public class ContentHotReloadTests : DevTest
Inheritance
object
ContentHotReloadTests
Inherited Members

Methods

ReloadInvalidatesMonsterNameCache()

A reload rebuilds every definition — MonsterPool's resolved caches (name → prefab, prefab → definition) must be dropped, or a patched name keeps resolving through the stale entry.

WatcherReloadsContentJson()

Writing and deleting a mod's content JSON must reach the database without any manual reload.