From 2d604704223aa5d223268ab41af9df19d71d2e30 Mon Sep 17 00:00:00 2001 From: tschumann Date: Mon, 19 May 2025 18:00:33 +1000 Subject: [PATCH 1/6] Add apidoc utility. --- utils/CMakeLists.txt | 3 ++- utils/apidoc/CMakeLists.txt | 34 ++++++++++++++++++++++++++++++++++ utils/apidoc/main.cpp | 15 +++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 utils/apidoc/CMakeLists.txt create mode 100644 utils/apidoc/main.cpp diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index aeaea0e9..e8f741af 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -4,7 +4,7 @@ if (MSVC) set(CMAKE_SYSTEM_VERSION 10.0) endif() -project(msr LANGUAGES C CXX) +project(utils LANGUAGES C CXX) set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE) @@ -90,6 +90,7 @@ endfunction(set_common_properties) add_compile_definitions($<$:DEBUG> $<$:_DEBUG>) add_compile_definitions($<$:NDEBUG>) +add_subdirectory(apidoc) # TODO: charimport is quite broken # add_subdirectory(charimport) add_subdirectory(maphash) diff --git a/utils/apidoc/CMakeLists.txt b/utils/apidoc/CMakeLists.txt new file mode 100644 index 00000000..05df39fa --- /dev/null +++ b/utils/apidoc/CMakeLists.txt @@ -0,0 +1,34 @@ +add_executable(apidoc) + +################################################################################ +# Target Properties +################################################################################ +set_common_properties(apidoc) + +target_include_directories(apidoc PRIVATE + ${BASEDIR}/../src/common + ${BASEDIR}/../src/game/server + ${BASEDIR}/../src/game/server/hl + ${BASEDIR}/../src/game/shared + ${BASEDIR}/../src/game/shared/ms + ${BASEDIR}/../src/public + ${BASEDIR}/../src/public/engine + ${CMAKE_CURRENT_SOURCE_DIR} +) + +################################################################################ +# Source groups +################################################################################ +set(Source_Files + "main.cpp" + "../../src/game/server/monsters/npcscript.cpp" + "../../src/game/shared/weapons/genericitem.cpp" + +) +source_group("Source Files" FILES ${Source_Files}) + +set(ALL_FILES + ${Source_Files} +) + +target_sources(apidoc PRIVATE ${ALL_FILES}) \ No newline at end of file diff --git a/utils/apidoc/main.cpp b/utils/apidoc/main.cpp new file mode 100644 index 00000000..44a14fde --- /dev/null +++ b/utils/apidoc/main.cpp @@ -0,0 +1,15 @@ +//============================================================================= +// +// apidoc - Master Sword script API documentation +// +// https://msrebirth.net/ +// +// Author: Tom 'tschumann' Schumann +// Notes: dump out MSScript functions +// +//============================================================================= + +int main(int argc, char* argv[]) +{ + return 0; +} \ No newline at end of file From 8bfa734dbf145a0430186e28ba5d97cb0663ff3d Mon Sep 17 00:00:00 2001 From: tschumann Date: Thu, 29 May 2025 21:20:24 +1000 Subject: [PATCH 2/6] Fix packer not compiling and exclude uneeded headers. --- src/game/server/player/player.h | 2 ++ src/game/shared/weapons/genericitem.cpp | 8 +++++++- utils/scriptpack/packer.cpp | 8 ++++---- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/game/server/player/player.h b/src/game/server/player/player.h index dbb2fc80..e66d5a5f 100644 --- a/src/game/server/player/player.h +++ b/src/game/server/player/player.h @@ -18,7 +18,9 @@ #include "monsters/msmonster.h" #include "sharedutil.h" #include "monsters/bodyparts/bodyparts_human.h" +#ifndef _MSR_UTILS #include "pm_materials.h" +#endif // _MSR_UTILS #include "mscharacter.h" #define MAX_ID_RANGE 2048 diff --git a/src/game/shared/weapons/genericitem.cpp b/src/game/shared/weapons/genericitem.cpp index 60dd40db..fdd25110 100644 --- a/src/game/shared/weapons/genericitem.cpp +++ b/src/game/shared/weapons/genericitem.cpp @@ -10,14 +10,18 @@ Generic Item: All Items are defined here */ #ifndef VALVE_DLL +#ifndef _MSR_UTILS #include "hud.h" #include "cl_util.h" #include "cl_dll.h" +#endif // _MSR_UTILS #include "../common/const.h" #include "../engine/studio.h" #include "r_studioint.h" +#ifndef _MSR_UTILS #include "SDL2/SDL_messagebox.h" -#endif +#endif // _MSR_UTILS +#endif // VALVE_DLL #include "inc_weapondefs.h" #include "script.h" @@ -31,8 +35,10 @@ void ContainerWindowClose(); void ContainerWindowUpdate(); void ContainerWindowOpen(ulong ContainerID); extern engine_studio_api_t IEngineStudio; +#ifndef _MSR_UTILS #include "ms/clglobal.h" #include "render/clrender.h" +#endif // _MSR_UTILS #endif #include "soundent.h" diff --git a/utils/scriptpack/packer.cpp b/utils/scriptpack/packer.cpp index c5117730..8d90acad 100644 --- a/utils/scriptpack/packer.cpp +++ b/utils/scriptpack/packer.cpp @@ -102,7 +102,7 @@ void Packer::processScripts() if(InFile.ReadFromFile(FullPath)) { char cRelativePath[MAX_PATH]; - strncpy(cRelativePath, &FullPath[strlen(m_WorkDir) + 1], MAX_PATH); + strncpy(cRelativePath, &(FullPath.c_str()[strlen(m_WorkDir) + 1]), MAX_PATH); char createFile[MAX_PATH]; _snprintf(createFile, MAX_PATH, "%s%s", m_CookedDir, cRelativePath); @@ -129,7 +129,7 @@ void Packer::processScripts() if(InFile.ReadFromFile(FullPath)) { char cRelativePath[MAX_PATH]; - strncpy(cRelativePath, &FullPath[strlen(m_WorkDir) + 1], MAX_PATH); + strncpy(cRelativePath, &(FullPath.c_str()[strlen(m_WorkDir) + 1]), MAX_PATH); if (g_Verbose) printf("Error checking script: %s\n", cRelativePath); @@ -181,7 +181,7 @@ void Packer::packScripts() if (InFile.ReadFromFile(FullPath)) { char cRelativePath[MAX_PATH]; - strncpy(cRelativePath, &FullPath[strlen(m_WorkDir) + 1], MAX_PATH); + strncpy(cRelativePath, &(FullPath.c_str()[strlen(m_WorkDir) + 1]), MAX_PATH); if (g_Verbose == true) printf("Packing file: %s\n", cRelativePath); @@ -212,7 +212,7 @@ void Packer::packScripts() if (InFile.ReadFromFile(FullPath)) { char cRelativePath[MAX_PATH]; - strncpy(cRelativePath, &FullPath[strlen(m_WorkDir) + 1], MAX_PATH); + strncpy(cRelativePath, &(FullPath.c_str()[strlen(m_WorkDir) + 1]), MAX_PATH); if (g_Verbose == true) printf("Packing file: %s\n", cRelativePath); From de85357f7a660bcecf5cc4e052182d579b62b9c7 Mon Sep 17 00:00:00 2001 From: tschumann Date: Sat, 12 Jul 2025 10:12:42 +1000 Subject: [PATCH 3/6] Progress compiling apidoc. --- src/game/server/player/player.h | 2 -- src/game/shared/weapons/genericitem.cpp | 6 ----- utils/apidoc/CMakeLists.txt | 35 +++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/game/server/player/player.h b/src/game/server/player/player.h index e66d5a5f..dbb2fc80 100644 --- a/src/game/server/player/player.h +++ b/src/game/server/player/player.h @@ -18,9 +18,7 @@ #include "monsters/msmonster.h" #include "sharedutil.h" #include "monsters/bodyparts/bodyparts_human.h" -#ifndef _MSR_UTILS #include "pm_materials.h" -#endif // _MSR_UTILS #include "mscharacter.h" #define MAX_ID_RANGE 2048 diff --git a/src/game/shared/weapons/genericitem.cpp b/src/game/shared/weapons/genericitem.cpp index 8c27681b..00ca70b5 100644 --- a/src/game/shared/weapons/genericitem.cpp +++ b/src/game/shared/weapons/genericitem.cpp @@ -10,17 +10,13 @@ Generic Item: All Items are defined here */ #ifndef VALVE_DLL -#ifndef _MSR_UTILS #include "hud.h" #include "cl_util.h" #include "cl_dll.h" -#endif // _MSR_UTILS #include "../common/const.h" #include "../engine/studio.h" #include "r_studioint.h" -#ifndef _MSR_UTILS #include "SDL2/SDL_messagebox.h" -#endif // _MSR_UTILS #endif // VALVE_DLL #include "inc_weapondefs.h" @@ -35,10 +31,8 @@ void ContainerWindowClose(); void ContainerWindowUpdate(); void ContainerWindowOpen(ulong ContainerID); extern engine_studio_api_t IEngineStudio; -#ifndef _MSR_UTILS #include "ms/clglobal.h" #include "render/clrender.h" -#endif // _MSR_UTILS #endif #include "soundent.h" diff --git a/utils/apidoc/CMakeLists.txt b/utils/apidoc/CMakeLists.txt index 05df39fa..18b5474c 100644 --- a/utils/apidoc/CMakeLists.txt +++ b/utils/apidoc/CMakeLists.txt @@ -6,16 +6,31 @@ add_executable(apidoc) set_common_properties(apidoc) target_include_directories(apidoc PRIVATE + ${BASEDIR}/../lib/include + ${BASEDIR}/../lib/include/vgui ${BASEDIR}/../src/common + ${BASEDIR}/../src/game/client + ${BASEDIR}/../src/game/client/ms + ${BASEDIR}/../src/game/client/ui ${BASEDIR}/../src/game/server + ${BASEDIR}/../src/game/server/gamerules ${BASEDIR}/../src/game/server/hl + ${BASEDIR}/../src/game/server/monsters + ${BASEDIR}/../src/game/server/player ${BASEDIR}/../src/game/shared + ${BASEDIR}/../src/game/shared/movement ${BASEDIR}/../src/game/shared/ms + ${BASEDIR}/../src/game/shared/stats + ${BASEDIR}/../src/game/shared/weapons ${BASEDIR}/../src/public ${BASEDIR}/../src/public/engine + ${BASEDIR}/../thirdparty ${CMAKE_CURRENT_SOURCE_DIR} ) +target_compile_definitions(apidoc PRIVATE + VALVE_DLL) + ################################################################################ # Source groups ################################################################################ @@ -24,6 +39,26 @@ set(Source_Files "../../src/game/server/monsters/npcscript.cpp" "../../src/game/shared/weapons/genericitem.cpp" + # sigh, need to include all this so that all the declared functions and methods can resolve + "../../src/game/server/effects.cpp" + "../../src/game/server/entity.cpp" + "../../src/game/server/hl/animating.cpp" + "../../src/game/server/hl/cbase.cpp" + "../../src/game/server/hl/subs.cpp" + "../../src/game/server/hl/util.cpp" + "../../src/game/server/monsters/combat.cpp" + "../../src/game/server/monsters/msmonsterserver.cpp" + "../../src/game/server/player/player.cpp" + "../../src/game/server/player/playershared.cpp" + "../../src/game/shared/ms/global.cpp" + "../../src/game/shared/ms/msmonstershared.cpp" + "../../src/game/shared/ms/script.cpp" + "../../src/game/shared/ms/scriptcmds.cpp" + "../../src/game/shared/ms/scriptedeffects.cpp" + "../../src/game/shared/ms/sharedutil.cpp" + "../../src/game/shared/ms/stackstring.cpp" + "../../src/game/shared/stats/stats.cpp" + ) source_group("Source Files" FILES ${Source_Files}) From 36908d6534f9591fce31b516bcd90413cb2449bd Mon Sep 17 00:00:00 2001 From: tschumann Date: Sat, 12 Jul 2025 10:14:16 +1000 Subject: [PATCH 4/6] Undid change to genericitem. --- src/game/shared/weapons/genericitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/shared/weapons/genericitem.cpp b/src/game/shared/weapons/genericitem.cpp index 00ca70b5..8f3b3910 100644 --- a/src/game/shared/weapons/genericitem.cpp +++ b/src/game/shared/weapons/genericitem.cpp @@ -17,7 +17,7 @@ #include "../engine/studio.h" #include "r_studioint.h" #include "SDL2/SDL_messagebox.h" -#endif // VALVE_DLL +#endif #include "inc_weapondefs.h" #include "script.h" From a728e0d444f9d00ae0156e416eeabd2921e27749 Mon Sep 17 00:00:00 2001 From: tschumann Date: Sat, 26 Jul 2025 17:34:54 +1000 Subject: [PATCH 5/6] Work on getting apidoc to compile. --- utils/apidoc/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/utils/apidoc/CMakeLists.txt b/utils/apidoc/CMakeLists.txt index 18b5474c..6e7f8e69 100644 --- a/utils/apidoc/CMakeLists.txt +++ b/utils/apidoc/CMakeLists.txt @@ -10,6 +10,7 @@ target_include_directories(apidoc PRIVATE ${BASEDIR}/../lib/include/vgui ${BASEDIR}/../src/common ${BASEDIR}/../src/game/client + ${BASEDIR}/../src/game/client/hl ${BASEDIR}/../src/game/client/ms ${BASEDIR}/../src/game/client/ui ${BASEDIR}/../src/game/server @@ -20,11 +21,14 @@ target_include_directories(apidoc PRIVATE ${BASEDIR}/../src/game/shared ${BASEDIR}/../src/game/shared/movement ${BASEDIR}/../src/game/shared/ms + ${BASEDIR}/../src/game/shared/ms/crc ${BASEDIR}/../src/game/shared/stats + ${BASEDIR}/../src/game/shared/syntax ${BASEDIR}/../src/game/shared/weapons ${BASEDIR}/../src/public ${BASEDIR}/../src/public/engine ${BASEDIR}/../thirdparty + ${BASEDIR}/../thirdparty/angelscript/include ${CMAKE_CURRENT_SOURCE_DIR} ) @@ -42,8 +46,13 @@ set(Source_Files # sigh, need to include all this so that all the declared functions and methods can resolve "../../src/game/server/effects.cpp" "../../src/game/server/entity.cpp" + "../../src/game/server/magic.cpp" + "../../src/game/server/store.cpp" + "../../src/game/server/svglobals.cpp" + "../../src/game/server/fn/FNSharedDefs.cpp" "../../src/game/server/hl/animating.cpp" "../../src/game/server/hl/cbase.cpp" + "../../src/game/server/hl/sound.cpp" "../../src/game/server/hl/subs.cpp" "../../src/game/server/hl/util.cpp" "../../src/game/server/monsters/combat.cpp" @@ -51,6 +60,7 @@ set(Source_Files "../../src/game/server/player/player.cpp" "../../src/game/server/player/playershared.cpp" "../../src/game/shared/ms/global.cpp" + "../../src/game/shared/ms/groupfile.cpp" "../../src/game/shared/ms/msmonstershared.cpp" "../../src/game/shared/ms/script.cpp" "../../src/game/shared/ms/scriptcmds.cpp" @@ -58,6 +68,11 @@ set(Source_Files "../../src/game/shared/ms/sharedutil.cpp" "../../src/game/shared/ms/stackstring.cpp" "../../src/game/shared/stats/stats.cpp" + "../../src/game/shared/weapons/giarmor.cpp" + "../../src/game/shared/weapons/giattack.cpp" + "../../src/game/shared/weapons/gidrinkable.cpp" + "../../src/game/shared/weapons/gipack.cpp" + "../../src/game/shared/weapons/weapons.cpp" ) source_group("Source Files" FILES ${Source_Files}) From 6c2eb995970643a5a870d73f481eddd2f8e30cec Mon Sep 17 00:00:00 2001 From: tschumann Date: Fri, 1 Aug 2025 18:51:17 +1000 Subject: [PATCH 6/6] Try doing it from ms.dll instead. --- src/game/server/monsters/npcscript.cpp | 2 + src/game/shared/ms/msscript_apidoc.cpp | 5 ++ src/game/shared/ms/script.cpp | 7 ++- src/game/shared/ms/script.h | 4 ++ src/game/shared/weapons/genericitem.cpp | 2 + utils/CMakeLists.txt | 1 - utils/apidoc/CMakeLists.txt | 84 ------------------------- utils/apidoc/main.cpp | 15 ----- 8 files changed, 18 insertions(+), 102 deletions(-) create mode 100644 src/game/shared/ms/msscript_apidoc.cpp delete mode 100644 utils/apidoc/CMakeLists.txt delete mode 100644 utils/apidoc/main.cpp diff --git a/src/game/server/monsters/npcscript.cpp b/src/game/server/monsters/npcscript.cpp index 29df2edf..f82b4442 100644 --- a/src/game/server/monsters/npcscript.cpp +++ b/src/game/server/monsters/npcscript.cpp @@ -18,6 +18,8 @@ void CMSMonster::Script_Setup() { if (!m_ScriptCommands.size()) { + ALERT(at_console, "CMSMonster::Script_Setup\n"); + //NPC Commands m_ScriptCommands.add(scriptcmdname_t("blind")); //Thothie MAR2008b m_ScriptCommands.add(scriptcmdname_t("invisible")); //Thothie MAR2008b diff --git a/src/game/shared/ms/msscript_apidoc.cpp b/src/game/shared/ms/msscript_apidoc.cpp new file mode 100644 index 00000000..a1810f59 --- /dev/null +++ b/src/game/shared/ms/msscript_apidoc.cpp @@ -0,0 +1,5 @@ + +void WriteToFile() +{ + +} diff --git a/src/game/shared/ms/script.cpp b/src/game/shared/ms/script.cpp index 79927702..5b9419df 100644 --- a/src/game/shared/ms/script.cpp +++ b/src/game/shared/ms/script.cpp @@ -31,19 +31,20 @@ bool GetModelBounds(CBaseEntity* pEntity, Vector Bounds[2]); #include "crc/crchash.h" //Wishbone MAR2016 - Our CRC function. #include "findentities.h" #include -//#include #undef SCRIPTVAR #define VecMultiply( a, b ) Vector( a[0] * b[0], a[1] * b[1], a[2] * b[2] ) //Thothie APR2016_25 - seems we need this here too #define SCRIPTVAR GetVar //A script-wide or global variable #define SCRIPTCONST( a ) SCRIPTVAR(GetConst(a)) //A const, script-wide, or global variable - loadtime only #define GETCONST_COMPATIBLE( a ) ( a.c_str()[0] == '$' ? GetConst(a) : SCRIPTCONST(a) ) //Loadtime - Only parse it as a var if it's not a $parser -//int CountPlayers( void ); + bool FindSkyHeight(Vector Origin, float& SkyHeight); bool UnderSky(Vector Origin); //Thothie AUG2010_03 const char* PM_GetValue(msstringlist& Params); bool GetModelBounds(void* pModel, Vector Bounds[2]); +bool bShouldDumpMSScriptFunctions = false; + CScript::msfunchash_t CScript::m_GlobalCmdHash; // MiB 30NOV_14 Hashed Commands for ScriptCmds.cpp CScript::msgetterhash_t CScript::m_GlobalGetterHash; msscripthashhash CScript::mGlobalScriptHashes; @@ -56,6 +57,8 @@ ulong CScript::m_gLastLightID; //ID of last dynamic light void CScript::ScriptGetterHash_Setup() { + ALERT(at_console, "CScript::ScriptGetterHash_Setup\n"); + if (m_GlobalGetterHash.empty()) { m_GlobalGetterHash["$len"] = scriptcpp_cmdfunc_t(&CScript::ScriptGetter_Len); diff --git a/src/game/shared/ms/script.h b/src/game/shared/ms/script.h index 39a5d48a..4343525c 100644 --- a/src/game/shared/ms/script.h +++ b/src/game/shared/ms/script.h @@ -3,7 +3,11 @@ Script.h - Script file implementation */ + #include + +extern bool bShouldDumpMSScriptFunctions; + class CEventList : public mslist //This class was created so I can store Events as pointers, but still access them as { //dereferenced objects public: diff --git a/src/game/shared/weapons/genericitem.cpp b/src/game/shared/weapons/genericitem.cpp index 120ddca6..5960b22c 100644 --- a/src/game/shared/weapons/genericitem.cpp +++ b/src/game/shared/weapons/genericitem.cpp @@ -331,6 +331,8 @@ void CGenericItemMgr::GenericItemPrecache(void) //GenericItem script commands (only add once per game): if (!m_ScriptCommands.size()) { + ALERT(at_console, "CGenericItemMgr::GenericItemPrecache\n"); + m_ScriptCommands.add(scriptcmdname_t("wipespells")); m_ScriptCommands.add(scriptcmdname_t("callownerevent")); m_ScriptCommands.add(scriptcmdname_t("playanim")); diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 1eb94b2e..7ed66298 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -90,7 +90,6 @@ endfunction(set_common_properties) add_compile_definitions($<$:DEBUG> $<$:_DEBUG>) add_compile_definitions($<$:NDEBUG>) -add_subdirectory(apidoc) # TODO: charimport is quite broken # add_subdirectory(charimport) add_subdirectory(maphash) diff --git a/utils/apidoc/CMakeLists.txt b/utils/apidoc/CMakeLists.txt deleted file mode 100644 index 6e7f8e69..00000000 --- a/utils/apidoc/CMakeLists.txt +++ /dev/null @@ -1,84 +0,0 @@ -add_executable(apidoc) - -################################################################################ -# Target Properties -################################################################################ -set_common_properties(apidoc) - -target_include_directories(apidoc PRIVATE - ${BASEDIR}/../lib/include - ${BASEDIR}/../lib/include/vgui - ${BASEDIR}/../src/common - ${BASEDIR}/../src/game/client - ${BASEDIR}/../src/game/client/hl - ${BASEDIR}/../src/game/client/ms - ${BASEDIR}/../src/game/client/ui - ${BASEDIR}/../src/game/server - ${BASEDIR}/../src/game/server/gamerules - ${BASEDIR}/../src/game/server/hl - ${BASEDIR}/../src/game/server/monsters - ${BASEDIR}/../src/game/server/player - ${BASEDIR}/../src/game/shared - ${BASEDIR}/../src/game/shared/movement - ${BASEDIR}/../src/game/shared/ms - ${BASEDIR}/../src/game/shared/ms/crc - ${BASEDIR}/../src/game/shared/stats - ${BASEDIR}/../src/game/shared/syntax - ${BASEDIR}/../src/game/shared/weapons - ${BASEDIR}/../src/public - ${BASEDIR}/../src/public/engine - ${BASEDIR}/../thirdparty - ${BASEDIR}/../thirdparty/angelscript/include - ${CMAKE_CURRENT_SOURCE_DIR} -) - -target_compile_definitions(apidoc PRIVATE - VALVE_DLL) - -################################################################################ -# Source groups -################################################################################ -set(Source_Files - "main.cpp" - "../../src/game/server/monsters/npcscript.cpp" - "../../src/game/shared/weapons/genericitem.cpp" - - # sigh, need to include all this so that all the declared functions and methods can resolve - "../../src/game/server/effects.cpp" - "../../src/game/server/entity.cpp" - "../../src/game/server/magic.cpp" - "../../src/game/server/store.cpp" - "../../src/game/server/svglobals.cpp" - "../../src/game/server/fn/FNSharedDefs.cpp" - "../../src/game/server/hl/animating.cpp" - "../../src/game/server/hl/cbase.cpp" - "../../src/game/server/hl/sound.cpp" - "../../src/game/server/hl/subs.cpp" - "../../src/game/server/hl/util.cpp" - "../../src/game/server/monsters/combat.cpp" - "../../src/game/server/monsters/msmonsterserver.cpp" - "../../src/game/server/player/player.cpp" - "../../src/game/server/player/playershared.cpp" - "../../src/game/shared/ms/global.cpp" - "../../src/game/shared/ms/groupfile.cpp" - "../../src/game/shared/ms/msmonstershared.cpp" - "../../src/game/shared/ms/script.cpp" - "../../src/game/shared/ms/scriptcmds.cpp" - "../../src/game/shared/ms/scriptedeffects.cpp" - "../../src/game/shared/ms/sharedutil.cpp" - "../../src/game/shared/ms/stackstring.cpp" - "../../src/game/shared/stats/stats.cpp" - "../../src/game/shared/weapons/giarmor.cpp" - "../../src/game/shared/weapons/giattack.cpp" - "../../src/game/shared/weapons/gidrinkable.cpp" - "../../src/game/shared/weapons/gipack.cpp" - "../../src/game/shared/weapons/weapons.cpp" - -) -source_group("Source Files" FILES ${Source_Files}) - -set(ALL_FILES - ${Source_Files} -) - -target_sources(apidoc PRIVATE ${ALL_FILES}) \ No newline at end of file diff --git a/utils/apidoc/main.cpp b/utils/apidoc/main.cpp deleted file mode 100644 index 44a14fde..00000000 --- a/utils/apidoc/main.cpp +++ /dev/null @@ -1,15 +0,0 @@ -//============================================================================= -// -// apidoc - Master Sword script API documentation -// -// https://msrebirth.net/ -// -// Author: Tom 'tschumann' Schumann -// Notes: dump out MSScript functions -// -//============================================================================= - -int main(int argc, char* argv[]) -{ - return 0; -} \ No newline at end of file