Class BorderStyleUpdater
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
-
objectBorderStyleUpdater
Constructors
BorderStyleUpdater(BorderCurveCache, ProvinceSystem, CountrySystem)
public BorderStyleUpdater(BorderCurveCache cache, ProvinceSystem provinces, CountrySystem countries)
Parameters
cacheBorderCurveCacheprovincesProvinceSystemcountriesCountrySystem
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
provinceIDushort