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
-
objectBuildingInfoUI
- 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
gameStateRefGameStatebuildingSystemRefBuildingSystemprovinceSelectorRefProvinceSelector
OnDestroy()
Called when the panel is destroyed. Disposes event subscriptions. Override to add cleanup, but always call base.OnDestroy().
protected override void OnDestroy()