Table of Contents

Class TextureUpdateBridge

Namespace
Map.Rendering
Assembly
MapAssembly.dll

Simple bridge component that listens to province change events and updates textures via MapTexturePopulator. Replaces the complex SimulationTextureUpdater with a lightweight event-driven approach.

Configuration comes from GameSettings - no Inspector assignments needed.

public class TextureUpdateBridge : MonoBehaviour
Inheritance
object
TextureUpdateBridge

Methods

ForceUpdate()

Force immediate update of all pending changes

public void ForceUpdate()

Initialize(GameState, MapTextureManager, MapTexturePopulator, ProvinceMapping, OwnerTextureDispatcher, BorderComputeDispatcher)

Initialize the bridge with required components.

public void Initialize(GameState gameState, MapTextureManager textureManager, MapTexturePopulator texturePopulator, ProvinceMapping provinceMapping, OwnerTextureDispatcher ownerDispatcher = null, BorderComputeDispatcher borderDispatcher = null)

Parameters

gameState GameState
textureManager MapTextureManager
texturePopulator MapTexturePopulator
provinceMapping ProvinceMapping
ownerDispatcher OwnerTextureDispatcher
borderDispatcher BorderComputeDispatcher