Class TextureUpdateBridge
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
-
objectTextureUpdateBridge
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
gameStateGameStatetextureManagerMapTextureManagertexturePopulatorMapTexturePopulatorprovinceMappingProvinceMappingownerDispatcherOwnerTextureDispatcherborderDispatcherBorderComputeDispatcher