public void TriggerChoice(PlayerEvent ev, string choiceKey) { Debug.Log ("Trigger choice " + choiceKey + " for event " + ev.Content); var interactionProcessor = new InteractionProcessor(sim); interactionProcessor.StoreChoice(choiceKey); NotificationCenter.PostNotification(Constants.OnUpdateEvents); }
public void TriggerChoice(PlayerEvent ev, string choiceKey) { Debug.Log("Trigger choice " + choiceKey + " for event " + ev.Content); var interactionProcessor = new InteractionProcessor(sim); interactionProcessor.StoreChoice(choiceKey); NotificationCenter.PostNotification(Constants.OnUpdateEvents); }
public void Enter() { var interactionTemplateKey = sim.currentEnvironment.enterInteractionTemplateKey; var interactionTemplate = JSONResource.Get<InteractionTemplate>(interactionTemplateKey); if (interactionTemplate == null) { return; } var interaction = InteractionGenerator.Generate(interactionTemplate); sim.SetInteraction(interaction); var interactionProcessor = new InteractionProcessor(sim); interactionProcessor.Start(); }
public void Enter() { var interactionTemplateKey = sim.currentEnvironment.enterInteractionTemplateKey; var interactionTemplate = JSONResource.Get <InteractionTemplate>(interactionTemplateKey); if (interactionTemplate == null) { return; } var interaction = InteractionGenerator.Generate(interactionTemplate); sim.SetInteraction(interaction); var interactionProcessor = new InteractionProcessor(sim); interactionProcessor.Start(); }
public Form1(CqrsEngineHost host, IObservable <ISystemEvent> observable) { _host = host; _observable = observable; InitializeComponent(); var sender = _host.Resolve <IMessageSender>(); var storage = _host.Resolve <NuclearStorage>(); _viewport = new LifelineViewport(_rich, _status); _processor = new InteractionProcessor(sender, _viewport, storage); _panel.BackColor = Solarized.Base3; _rich.BackColor = Solarized.Base3; _rich.ForeColor = Solarized.Base00; _input.BackColor = Solarized.Base03; _input.ForeColor = Solarized.Base0; _status.BackColor = Solarized.Base03; _status.ForeColor = Solarized.Base01; }
void Interact() { var interactionProcessor = new InteractionProcessor(sim); interactionProcessor.Continue(); }