Class ProvinceInfoPresenter
- Namespace
- StarterKit
- Assembly
- StarterKit.dll
STARTERKIT - Province info presenter (stateless data formatting) Pattern: UI Presenter Pattern - Presenter Component
Responsibilities:
- Query GameState for province data
- Format data for display
- Update UI element contents
public static class ProvinceInfoPresenter
- Inheritance
-
objectProvinceInfoPresenter
Methods
UpdatePanelData(ushort, GameState, Label, Label, VisualElement, Label)
Update province info labels with data from GameState
public static void UpdatePanelData(ushort provinceID, GameState gameState, Label nameLabel, Label idLabel, VisualElement ownerColorIndicator, Label ownerLabel)
Parameters
provinceIDushortgameStateGameStatenameLabelLabelidLabelLabelownerColorIndicatorVisualElementownerLabelLabel