Table of Contents

Class BuildingInfoUI

Namespace
StarterKit
Assembly
StarterKit.dll

STARTERKIT - Building information panel Shows buildings in the selected province with option to construct new buildings. Pattern: UI Presenter Pattern - View Component

public class BuildingInfoUI : StarterKitPanel
Inheritance
object
BuildingInfoUI
Inherited Members

Methods

CreateUI()

Override to create your panel's UI elements. Set panelContainer to your main container element.

protected override void CreateUI()

Initialize(GameState, BuildingSystem, ProvinceSelector)

public void Initialize(GameState gameStateRef, BuildingSystem buildingSystemRef, ProvinceSelector provinceSelectorRef)

Parameters

gameStateRef GameState
buildingSystemRef BuildingSystem
provinceSelectorRef ProvinceSelector

OnDestroy()

Called when the panel is destroyed. Disposes event subscriptions. Override to add cleanup, but always call base.OnDestroy().

protected override void OnDestroy()