Table of Contents

Class UnitInfoUI

Namespace
StarterKit
Assembly
StarterKit.dll

STARTERKIT - Unit information panel Shows units in the selected province with option to create new units. Movement logic is handled by UnitMoveHandler.

public class UnitInfoUI : StarterKitPanel
Inheritance
object
UnitInfoUI
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, UnitSystem, ProvinceSelector, EconomySystem)

public void Initialize(GameState gameStateRef, UnitSystem unitSystemRef, ProvinceSelector provinceSelectorRef, EconomySystem economySystemRef = null)

Parameters

gameStateRef GameState
unitSystemRef UnitSystem
provinceSelectorRef ProvinceSelector
economySystemRef EconomySystem

OnDestroy()

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

protected override void OnDestroy()