private void ShowItemInformation(Item item) { var sb = new StringBuilder(); sb.AppendLine(string.Format("[Network Object]")); sb.AppendLine(string.Format("\tBaseAddress: 0x{0:X}", item.BaseAddress.ToInt32())); sb.AppendLine(string.Format("\tName: {0}", item.Name)); sb.AppendLine(string.Format("\tMetadata: {0}", item.Metadata)); sb.AppendLine(string.Format("\tClass: {0}", item.Class)); sb.AppendLine(string.Format("\tAPI Type: {0}", item.GetType())); sb.AppendLine(); sb.AppendLine(string.Format("[Components]")); var components = item.Components.AllComponents.ToList(); foreach (var c in components) { sb.AppendLine(string.Format("\t{0}: 0x{1:X}", c.ComponentName, c.BaseAddress.ToInt32())); } sb.AppendLine(); foreach (var c in components) { sb.AppendLine(c.ToString()); sb.AppendLine(); } sb.AppendLine(); sb.Append(item.Dump()); TextBoxInfoRaw.AppendText(sb.ToString()); }
private void ShowQuestInformation(DatQuestWrapper quest) { var sb = new StringBuilder(); sb.AppendLine(string.Format("[Quest]")); sb.AppendLine(string.Format("\tId: {0}", quest.Id)); sb.AppendLine(string.Format("\tName: {0}", quest.Name)); sb.AppendLine(string.Format("\tAct: {0}", quest.Act)); var state = LokiPoe.InGameState.GetCurrentQuestState(quest); sb.AppendLine(string.Format("\t[State]")); if (state != null) { sb.AppendLine(string.Format("\t\tStateId: {0}", state.Id)); sb.AppendLine(string.Format("\t\tQuestProgressText: {0}", state.QuestProgressText)); sb.AppendLine(string.Format("\t\tQuestStateText: {0}", state.QuestStateText)); } else { sb.AppendLine(string.Format("\t\t(null)")); } TextBoxInfoRaw.AppendText(sb.ToString()); }
private void ShowAreaInformation(DatWorldAreaWrapper area) { TextBoxInfoRaw.AppendText(area.ToString()); var sb = new StringBuilder(); // Handle updates when the bot isn't running. if (!BotManager.IsRunning) { ExilePather.Reload(); //StaticLocationManager.Tick(); } /*sb.AppendLine(string.Format("[Static Locations]")); * foreach (var kvp in StaticLocationManager.StaticLocations) * { * sb.AppendLine(string.Format("\t{0}", kvp.Key)); * foreach (var pos in kvp.Value) * { * sb.AppendLine(string.Format("\t\t{0}", pos)); * } * }*/ /*sb.AppendLine(string.Format("[Static Waypoints]")); * foreach (var pos in StaticLocationManager.StaticWaypointLocations) * { * sb.AppendLine(string.Format("\t{0}", pos)); * }*/ sb.AppendLine(string.Format("[Mods]")); foreach (var mod in LokiPoe.LocalData.MapMods) { sb.AppendLine(string.Format("\t{0}: {1}", mod.Key, mod.Value)); } sb.AppendLine(string.Format("[Terrain]")); sb.AppendLine(string.Format("\tCols: {0}", LokiPoe.TerrainData.Cols)); sb.AppendLine(string.Format("\tRows: {0}", LokiPoe.TerrainData.Rows)); TextBoxInfoRaw.AppendText(sb.ToString()); }
private void ShowSkillInformation(Skill skill) { TextBoxInfoRaw.AppendText(skill.ToString()); }
private void ShowObjectInformation(NetworkObject obj) { TextBoxInfoRaw.AppendText(obj.Dump()); }