Skip to content

Commit

Permalink
Remove HudText from TaskDumper
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Nov 21, 2023
1 parent 864ac9c commit cf1f9b7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Dumpostor/Dumpers/Map/TaskDumper.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Il2CppSystem.Text;
using Reactor.Utilities.Extensions;
using UnityEngine;

Expand Down Expand Up @@ -69,27 +67,17 @@ public sealed class TaskInfo
{
public required string Type { get; init; }
public required TaskTypes TaskType { get; init; }
public required string HudText { get; init; }
public required TaskLength Length { get; init; }
public required List<TaskConsole> Consoles { get; init; }

public static TaskInfo From(NormalPlayerTask task, TaskLength length, List<TaskConsole> consoles)
{
var stringBuilder = new StringBuilder();
task.AppendTaskText(stringBuilder);
var hudText = stringBuilder.ToString()
.Replace("<color=#00DD00FF>", "")
.Replace("<color=#FFFF00FF>", "")
.Replace("</color>", "")
.TrimEnd(Environment.NewLine.ToCharArray());

return new TaskInfo
{
Type = task.GetIl2CppType().Name,
TaskType = task.TaskType,
Length = length,
Consoles = consoles,
HudText = hudText,
};
}
}
Expand Down

0 comments on commit cf1f9b7

Please sign in to comment.