Add debug logging toggle for sync flow

This commit is contained in:
Kam committed 2025-10-19 22:06:11 -04:00
1 parent 111f16647d
commit b25f2b786e
24 files changed
+710 -124

No files matched your search

@@ -37,6 +37,8 @@ public class GuiDialogSelection extends SubGuiInterface implements ICustomScroll
setBackground("menubg.png");
xSize = 366;
ySize = 226;
// TODO: Pulls the entire DialogController dialog map (global data); players only reach this via wand-required dialog
// editors that enforce PacketUtil.verifyItemPacket and CustomNpcsPermissions.GLOBAL_DIALOG/ops when editing.
this.selectedDialog = DialogController.Instance.dialogs.get(dialog);
if (selectedDialog != null) {
selectedCategory = selectedDialog.category;
@@ -59,6 +61,8 @@ public class GuiDialogSelection extends SubGuiInterface implements ICustomScroll
HashMap<String, DialogCategory> categoryData = new HashMap<String, DialogCategory>();
HashMap<String, Dialog> dialogData = new HashMap<String, Dialog>();
// TODO: Iterates over every dialog category provided by DialogController; reachable through NPC wand workflows that
// require dialog-edit permissions (CustomNpcsPermissions.GLOBAL_DIALOG or op status under OpsOnly).
for (DialogCategory category : DialogController.Instance.categories.values()) {
categoryData.put(category.title, category);
}
@@ -37,6 +37,8 @@ public class GuiQuestSelection extends SubGuiInterface implements ICustomScrollL
setBackground("menubg.png");
xSize = 366;
ySize = 226;
// TODO: Requires the full QuestController quest map (global dataset); access comes from wand-driven quest editors
// that rely on PacketUtil.verifyItemPacket and ultimately CustomNpcsPermissions.GLOBAL_QUEST / server op checks.
this.selectedQuest = QuestController.Instance.quests.get(quest);
if (selectedQuest != null) {
selectedCategory = selectedQuest.category;
@@ -59,6 +61,8 @@ public class GuiQuestSelection extends SubGuiInterface implements ICustomScrollL
HashMap<String, QuestCategory> categoryData = new HashMap<String, QuestCategory>();
HashMap<String, Quest> questData = new HashMap<String, Quest>();
// TODO: Needs every quest category from QuestController so the selector can populate; opened from NPC wand flows that
// demand the editing player satisfy CustomNpcsPermissions.GLOBAL_QUEST (or be OP when OpsOnly is enabled).
for (QuestCategory category : QuestController.Instance.categories.values()) {
categoryData.put(category.title, category);
}