From f37f07c722ced7f0df117114984336c9992fd2de Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 8 Dec 2023 22:41:27 +0100 Subject: [PATCH] moved some files into fs/ and api/ folders to clean up --- api_logging.lua => api/api_logging.lua | 0 api_properties.lua => api/api_properties.lua | 0 .../custom_functions_you_can_override.lua | 0 .../fs_assign_quest_step.lua | 0 fs_export.lua => fs/fs_export.lua | 0 .../fs_get_list_of_usage_of_variable.lua | 0 .../fs_manage_quests.lua | 0 .../fs_manage_variables.lua | 0 fs_notes.lua => fs/fs_notes.lua | 0 fs_properties.lua => fs/fs_properties.lua | 0 fs_quest_gui.lua => fs/fs_quest_gui.lua | 0 .../fs_show_all_var_values.lua | 0 fs_show_log.lua => fs/fs_show_log.lua | 0 .../fs_show_what_points_to_this_dialog.lua | 0 fs_trade_list.lua => fs/fs_trade_list.lua | 0 init.lua | 30 +++++++++---------- 16 files changed, 15 insertions(+), 15 deletions(-) rename api_logging.lua => api/api_logging.lua (100%) rename api_properties.lua => api/api_properties.lua (100%) rename custom_functions_you_can_override.lua => api/custom_functions_you_can_override.lua (100%) rename fs_assign_quest_step.lua => fs/fs_assign_quest_step.lua (100%) rename fs_export.lua => fs/fs_export.lua (100%) rename fs_get_list_of_usage_of_variable.lua => fs/fs_get_list_of_usage_of_variable.lua (100%) rename fs_manage_quests.lua => fs/fs_manage_quests.lua (100%) rename fs_manage_variables.lua => fs/fs_manage_variables.lua (100%) rename fs_notes.lua => fs/fs_notes.lua (100%) rename fs_properties.lua => fs/fs_properties.lua (100%) rename fs_quest_gui.lua => fs/fs_quest_gui.lua (100%) rename fs_show_all_var_values.lua => fs/fs_show_all_var_values.lua (100%) rename fs_show_log.lua => fs/fs_show_log.lua (100%) rename fs_show_what_points_to_this_dialog.lua => fs/fs_show_what_points_to_this_dialog.lua (100%) rename fs_trade_list.lua => fs/fs_trade_list.lua (100%) diff --git a/api_logging.lua b/api/api_logging.lua similarity index 100% rename from api_logging.lua rename to api/api_logging.lua diff --git a/api_properties.lua b/api/api_properties.lua similarity index 100% rename from api_properties.lua rename to api/api_properties.lua diff --git a/custom_functions_you_can_override.lua b/api/custom_functions_you_can_override.lua similarity index 100% rename from custom_functions_you_can_override.lua rename to api/custom_functions_you_can_override.lua diff --git a/fs_assign_quest_step.lua b/fs/fs_assign_quest_step.lua similarity index 100% rename from fs_assign_quest_step.lua rename to fs/fs_assign_quest_step.lua diff --git a/fs_export.lua b/fs/fs_export.lua similarity index 100% rename from fs_export.lua rename to fs/fs_export.lua diff --git a/fs_get_list_of_usage_of_variable.lua b/fs/fs_get_list_of_usage_of_variable.lua similarity index 100% rename from fs_get_list_of_usage_of_variable.lua rename to fs/fs_get_list_of_usage_of_variable.lua diff --git a/fs_manage_quests.lua b/fs/fs_manage_quests.lua similarity index 100% rename from fs_manage_quests.lua rename to fs/fs_manage_quests.lua diff --git a/fs_manage_variables.lua b/fs/fs_manage_variables.lua similarity index 100% rename from fs_manage_variables.lua rename to fs/fs_manage_variables.lua diff --git a/fs_notes.lua b/fs/fs_notes.lua similarity index 100% rename from fs_notes.lua rename to fs/fs_notes.lua diff --git a/fs_properties.lua b/fs/fs_properties.lua similarity index 100% rename from fs_properties.lua rename to fs/fs_properties.lua diff --git a/fs_quest_gui.lua b/fs/fs_quest_gui.lua similarity index 100% rename from fs_quest_gui.lua rename to fs/fs_quest_gui.lua diff --git a/fs_show_all_var_values.lua b/fs/fs_show_all_var_values.lua similarity index 100% rename from fs_show_all_var_values.lua rename to fs/fs_show_all_var_values.lua diff --git a/fs_show_log.lua b/fs/fs_show_log.lua similarity index 100% rename from fs_show_log.lua rename to fs/fs_show_log.lua diff --git a/fs_show_what_points_to_this_dialog.lua b/fs/fs_show_what_points_to_this_dialog.lua similarity index 100% rename from fs_show_what_points_to_this_dialog.lua rename to fs/fs_show_what_points_to_this_dialog.lua diff --git a/fs_trade_list.lua b/fs/fs_trade_list.lua similarity index 100% rename from fs_trade_list.lua rename to fs/fs_trade_list.lua diff --git a/init.lua b/init.lua index aacbe34..c31e0e0 100644 --- a/init.lua +++ b/init.lua @@ -144,8 +144,8 @@ yl_speak_up.reload = function(modpath, log_entry) minetest.mkdir(yl_speak_up.worldpath..yl_speak_up.quest_path) -- logging and showing the log - dofile(modpath .. "api_logging.lua") - dofile(modpath .. "fs_show_log.lua") + dofile(modpath .. "api/api_logging.lua") + dofile(modpath .. "fs/fs_show_log.lua") -- players *and* npc need privs for certain things; this here handles the NPC side of things dofile(modpath .. "npc_privs.lua") -- add generic dialogs @@ -168,10 +168,10 @@ yl_speak_up.reload = function(modpath, log_entry) -- the server's file system or can execute lua code. -- Note: Please do not edit this file. Instead, create and edit the -- file "local_server_do_on_reload.lua"! - dofile(modpath .. "custom_functions_you_can_override.lua") + dofile(modpath .. "api/custom_functions_you_can_override.lua") -- assign a quest step to a dialog option/answer - dofile(modpath .. "fs_assign_quest_step.lua") + dofile(modpath .. "fs/fs_assign_quest_step.lua") -- execute preconditions, actions and effects dofile(modpath .. "exec_eval_preconditions.lua") @@ -184,7 +184,7 @@ yl_speak_up.reload = function(modpath, log_entry) -- handle alternate text for dialogs dofile(modpath .. "fs_alternate_text.lua") -- helpful for debugging the content of the created dialog structure - dofile(modpath .. "fs_show_what_points_to_this_dialog.lua") + dofile(modpath .. "fs/fs_show_what_points_to_this_dialog.lua") -- debugging - extended information about what (your own) NPC does dofile(modpath .. "npc_talk_debug.lua") -- execute lua code directly (preconditions and effects) - requires priv @@ -213,17 +213,17 @@ yl_speak_up.reload = function(modpath, log_entry) -- just click on a button to buy items from the trade list dofile(modpath .. "fs_trade_via_buy_button.lua") -- easily accessible list of all trades the NPC offers - dofile(modpath .. "fs_trade_list.lua") + dofile(modpath .. "fs/fs_trade_list.lua") -- as the name says: list which npc acesses a variable how and in which context - dofile(modpath .. "fs_get_list_of_usage_of_variable.lua") + dofile(modpath .. "fs/fs_get_list_of_usage_of_variable.lua") -- show which values are stored for which player in a quest variable - dofile(modpath .. "fs_show_all_var_values.lua") + dofile(modpath .. "fs/fs_show_all_var_values.lua") -- manage quest variables: add, delete, manage access rights etc. - dofile(modpath .. "fs_manage_variables.lua") + dofile(modpath .. "fs/fs_manage_variables.lua") -- handle variables for quests for player-owned NPC dofile(modpath .. "quest_api.lua") -- GUI for adding/editing quests - dofile(modpath .. "fs_manage_quests.lua") + dofile(modpath .. "fs/fs_manage_quests.lua") -- GUI for adding/editing quest steps for the quests dofile(modpath .. "fs_manage_quest_steps.lua") -- used by the above @@ -232,18 +232,18 @@ yl_speak_up.reload = function(modpath, log_entry) dofile(modpath .. "fs_fashion.lua") -- properties for NPC without specific dialogs that want to make use of -- some generic dialogs - dofile(modpath .. "api_properties.lua") - dofile(modpath .. "fs_properties.lua") + dofile(modpath .. "api/api_properties.lua") + dofile(modpath .. "fs/fs_properties.lua") -- the main functionality of the mod dofile(modpath .. "functions.lua") -- implementation of the chat commands registered in register_once.lua: dofile(modpath .. "chat_commands.lua") -- creating and maintaining quests - dofile(modpath .. "fs_quest_gui.lua") + dofile(modpath .. "fs/fs_quest_gui.lua") -- export dialog for cut&paste in .json format - dofile(modpath .. "fs_export.lua") + dofile(modpath .. "fs/fs_export.lua") -- take notes regarding what the NPC is for - dofile(modpath .. "fs_notes.lua") + dofile(modpath .. "fs/fs_notes.lua") -- show a list of all NPC the player can edit dofile(modpath .. "fs_npc_list.lua")