Class DiplomacyPanel
- Namespace
- StarterKit
- Assembly
- StarterKit.dll
STARTERKIT - Diplomacy panel showing relations with a selected country.
Demonstrates ENGINE diplomacy system:
- Opinion display with color gradient
- War/peace status
- Treaty status (alliance, NAP, etc.)
- Declare War / Make Peace actions
Architecture:
- ENGINE: DiplomacySystem provides mechanism (war state, opinion calc)
- GAME: StarterKit provides policy (UI, when to allow actions)
public class DiplomacyPanel : StarterKitPanel
- Inheritance
-
objectDiplomacyPanel
- 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, PlayerState, EconomySystem)
public void Initialize(GameState gameStateRef, PlayerState playerStateRef, EconomySystem economySystemRef = null)
Parameters
gameStateRefGameStateplayerStateRefPlayerStateeconomySystemRefEconomySystem
ShowForCountry(ushort)
Show the panel for a specific country.
public void ShowForCountry(ushort countryId)
Parameters
countryIdushort