From 53d063dda9ad73f467dd912ec76f3f0ac5072ade Mon Sep 17 00:00:00 2001 From: sindoring Date: Mon, 9 Mar 2026 16:46:40 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=81=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../scripts/Custom/custom_script_loader.cpp | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/server/scripts/Custom/custom_script_loader.cpp diff --git a/.gitignore b/.gitignore index 3dc0f75..9a8a03c 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ /data/sql/custom/* /src/server/scripts/Custom/* !/src/server/scripts/Custom/README.md +!/src/server/scripts/Custom/custom_script_loader.cpp /*.override.yaml diff --git a/src/server/scripts/Custom/custom_script_loader.cpp b/src/server/scripts/Custom/custom_script_loader.cpp new file mode 100644 index 0000000..8f381e9 --- /dev/null +++ b/src/server/scripts/Custom/custom_script_loader.cpp @@ -0,0 +1,26 @@ +/* + * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +// This is where scripts' loading functions should be declared: +// void MyExampleScript() + +// The name of this function should match: +// void Add${NameOfDirectory}Scripts() +void AddCustomScripts() +{ + // MyExampleScript() +}