Table of Contents

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
object
ProvinceInfoPresenter

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

provinceID ushort
gameState GameState
nameLabel Label
idLabel Label
ownerColorIndicator VisualElement
ownerLabel Label