Example #1
0
 public void RemoveOperation(ParsedWorld world, ParsedOperation operation)
 {
     if (operation != null)
     {
         activeEvents.RemoveItem(operation.Id);
     }
 }
Example #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));
            }
        }
Example #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));
        }
Example #4
0
 protected void OnOperationEnded(ParsedOperation operation)
 {
     configWindow.RemoveOperation(world, operation);
 }