Пример #1
0
        public NodeViewModel(CommandExecutor cmdExec, DialogueEntry entry, Dialogue dialogue, NetworkViewModel network)
        {
            _dialogue      = dialogue;
            _dialogueEntry = entry;
            _cmdExec       = cmdExec;
            _network       = network;

            incomingConnector = new ConnectorViewModel(_cmdExec, null, this);

            for (int i = 0; i < entry.NumChoices; ++i)
            {
                DialogueChoice choice = entry.Choice(i);
                if (choice != null)
                {
                    OutgoingConnectors.Add(new ConnectorViewModel(_cmdExec, choice, this));
                }
            }
        }
Пример #2
0
 public AddParticipantUndoableCommand(CommandExecutor cmdExec, Dialogue dialogue, NetworkViewModel viewModel)
 {
     _dialogue = dialogue;
     _viewModel = viewModel;
     _cmdExec = cmdExec;
 }