Table of Contents

Class BorderStyleUpdater

Namespace
Map.Rendering.Border
Assembly
MapAssembly.dll

Updates border styles based on province ownership changes Extracted from BorderComputeDispatcher for single responsibility

Responsibilities:

  • Classify borders as country or province borders
  • Update border colors based on owner changes
  • Coordinate with BorderCurveCache for style updates
public class BorderStyleUpdater
Inheritance
object
BorderStyleUpdater

Constructors

BorderStyleUpdater(BorderCurveCache, ProvinceSystem, CountrySystem)

public BorderStyleUpdater(BorderCurveCache cache, ProvinceSystem provinces, CountrySystem countries)

Parameters

cache BorderCurveCache
provinces ProvinceSystem
countries CountrySystem

Methods

UpdateAllBorderStyles()

Update all border styles based on current province ownership Classifies borders as country or province borders and assigns colors

public void UpdateAllBorderStyles()

UpdateProvinceBorderStyle(ushort)

Update border style for a single province (when ownership changes)

public void UpdateProvinceBorderStyle(ushort provinceID)

Parameters

provinceID ushort