public void RemoveOperation(ParsedWorld world, ParsedOperation operation) { if (operation != null) { activeEvents.RemoveItem(operation.Id); } }
protected void OnOperationStarted(ParsedOperation operation) { configWindow.AddOperation(world, operation); if (world.OperationsInitialized && operation.Relevant) { Speak(operation.Description(DescriptionType.Spoken)); Popup(operation.Description(DescriptionType.Written)); } }
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)); }
protected void OnOperationEnded(ParsedOperation operation) { configWindow.RemoveOperation(world, operation); }