Ejemplo n.º 1
0
 public void RemoveOperation(ParsedWorld world, ParsedOperation operation)
 {
     if (operation != null)
     {
         activeEvents.RemoveItem(operation.Id);
     }
 }
Ejemplo n.º 2
0
        protected void OnOperationStarted(ParsedOperation operation)
        {
            configWindow.AddOperation(world, operation);

            if (world.OperationsInitialized && operation.Relevant)
            {
                Speak(operation.Description(DescriptionType.Spoken));
                Popup(operation.Description(DescriptionType.Written));
            }
        }
Ejemplo n.º 3
0
        public void AddOperation(ParsedWorld world, ParsedOperation operation)
        {
            if (operation == null)
            {
                return;
            }

            if (operation.Relevant)
            {
                activeEvents.AddItemToBottom(new ActiveOperationListBoxItem(world, operation.Id));
            }

            loggedEvents.AddItemToTop(new LoggedOperationListBoxItem(operation));
        }
Ejemplo n.º 4
0
 protected void OnOperationEnded(ParsedOperation operation)
 {
     configWindow.RemoveOperation(world, operation);
 }