public void PlayerWon(Encounter encounter) { Exit(); if (!string.IsNullOrEmpty(encounter.OnVictoryAction)) { var output = EmbeddedFunctionsHelper.Action(encounter.OnVictoryAction); if (!string.IsNullOrEmpty(output) && _application.ActiveScreen is GameScreen) { (_application.ActiveScreen as GameScreen).AppendOutput(output); } } }
private void _choices_SelectionChanged(object sender, DialogueScreenChoice e) { if (e == null) { return; } var output = EmbeddedFunctionsHelper.Action(e.Action); if (!string.IsNullOrEmpty(output)) { _output.Text = output; } _choices.SetSelection(e, false); }