Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
    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();
    }
Esempio n. 4
0
    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();
    }
Esempio n. 5
0
        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;
        }
Esempio n. 6
0
 void Interact()
 {
     var interactionProcessor = new InteractionProcessor(sim);
     interactionProcessor.Continue();
 }
Esempio n. 7
0
    void Interact()
    {
        var interactionProcessor = new InteractionProcessor(sim);

        interactionProcessor.Continue();
    }