private bool onTaskUpdated(TaskEvents.TaskUpdated evt) { if (evt.Task.Definition.Title == taskData.Definition.Title) { showTaskData(evt.Task); } return(false); }
private bool onUpdateTask(TaskEvents.TaskUpdated evt) { ClubPenguin.Task.Task task = evt.Task; string callID = $"{task.Definition.name}_{task.Counter}"; if (task.Definition.Group != 0) { string currentWorldName = getCurrentWorldName(); Service.Get <ICPSwrveService>().ActionSingular(callID, "daily_task.community." + task.Definition.name, $"{task.Counter}/{task.Definition.Threshold}", currentWorldName); } else if (task.Definition.Group == TaskDefinition.TaskGroup.Individual) { Service.Get <ICPSwrveService>().ActionSingular(callID, "daily_task.individual." + task.Definition.name, $"{task.Counter}/{task.Definition.Threshold}"); } return(false); }