refactor party
This commit is contained in:
19
CeoStatsContainer.cs
Normal file
19
CeoStatsContainer.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Godot;
|
||||
|
||||
namespace Game;
|
||||
|
||||
[SceneTree]
|
||||
public partial class CeoStatsContainer : FoldableContainer
|
||||
{
|
||||
public override void _Ready()
|
||||
{
|
||||
EventBus.CeoChanged += UpdateCeoStats;
|
||||
}
|
||||
|
||||
private void UpdateCeoStats(Ceo.CeoStats stats)
|
||||
{
|
||||
EnergyValue.Text = stats.Energy.ToString();
|
||||
InsanityValue.Text = stats.Insanity.ToString();
|
||||
CompetenceValue.Text = stats.Competence.ToString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user