Skip to content

Commit

Permalink
Organize dScripts (#814)
Browse files Browse the repository at this point in the history
* Organize dScripts

whitespace

Remove parent scope

Remove parent scope from initial setter

Remove debug

Remove helper programs

* Fix NtImagimeterVisibility script

Co-authored-by: aronwk-aaron <[email protected]>
  • Loading branch information
EmosewaMC and aronwk-aaron authored Nov 3, 2022
1 parent b974eed commit 8d37d9b
Show file tree
Hide file tree
Showing 567 changed files with 886 additions and 252 deletions.
68 changes: 68 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,74 @@ set(INCLUDED_DIRECTORIES
"dDatabase/Tables"
"dNet"
"dScripts"
"dScripts/02_server"
"dScripts/ai"
"dScripts/client"
"dScripts/EquipmentScripts"
"dScripts/zone"
"dScripts/02_server/DLU"
"dScripts/02_server/Enemy"
"dScripts/02_server/Equipment"
"dScripts/02_server/Map"
"dScripts/02_server/Minigame"
"dScripts/02_server/Objects"
"dScripts/02_server/Pets"
"dScripts/02_server/Enemy/AG"
"dScripts/02_server/Enemy/AM"
"dScripts/02_server/Enemy/FV"
"dScripts/02_server/Enemy/General"
"dScripts/02_server/Enemy/Survival"
"dScripts/02_server/Enemy/VE"
"dScripts/02_server/Enemy/Waves"
"dScripts/02_server/Map/AG"
"dScripts/02_server/Map/AG_Spider_Queen"
"dScripts/02_server/Map/AM"
"dScripts/02_server/Map/FV"
"dScripts/02_server/Map/General"
"dScripts/02_server/Map/GF"
"dScripts/02_server/Map/njhub"
"dScripts/02_server/Map/NS"
"dScripts/02_server/Map/NT"
"dScripts/02_server/Map/PR"
"dScripts/02_server/Map/Property"
"dScripts/02_server/Map/SS"
"dScripts/02_server/Map/VE"
"dScripts/02_server/Map/FV/Racing"
"dScripts/02_server/Map/General/Ninjago"
"dScripts/02_server/Map/njhub/boss_instance"
"dScripts/02_server/Map/NS/Waves"
"dScripts/02_server/Map/Property/AG_Med"
"dScripts/02_server/Map/Property/AG_Small"
"dScripts/02_server/Map/Property/NS_Med"
"dScripts/02_server/Minigame/General"
"dScripts/ai/ACT"
"dScripts/ai/AG"
"dScripts/ai/FV"
"dScripts/ai/GENERAL"
"dScripts/ai/GF"
"dScripts/ai/MINIGAME"
"dScripts/ai/NP"
"dScripts/ai/NS"
"dScripts/ai/PETS"
"dScripts/ai/PROPERTY"
"dScripts/ai/RACING"
"dScripts/ai/SPEC"
"dScripts/ai/WILD"
"dScripts/ai/ACT/FootRace"
"dScripts/ai/MINIGAME/SG_GF"
"dScripts/ai/MINIGAME/SG_GF/SERVER"
"dScripts/ai/NS/NS_PP_01"
"dScripts/ai/NS/WH"
"dScripts/ai/PROPERTY/AG"
"dScripts/ai/RACING/OBJECTS"
"dScripts/client/ai"
"dScripts/client/ai/PR"
"dScripts/zone/AG"
"dScripts/zone/LUPs"
"dScripts/zone/PROPERTY"
"dScripts/zone/PROPERTY/FV"
"dScripts/zone/PROPERTY/GF"
"dScripts/zone/PROPERTY/NS"

"thirdparty/raknet/Source"
"thirdparty/tinyxml2"
Expand Down
3 changes: 1 addition & 2 deletions dGame/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,13 @@ foreach(file ${DGAME_DPROPERTYBEHAVIORS_SOURCES})
set(DGAME_SOURCES ${DGAME_SOURCES} "dPropertyBehaviors/${file}")
endforeach()


add_subdirectory(dUtilities)

foreach(file ${DGAME_DUTILITIES_SOURCES})
set(DGAME_SOURCES ${DGAME_SOURCES} "dUtilities/${file}")
endforeach()

foreach(file ${DSCRIPT_SOURCES})
foreach(file ${DSCRIPTS_SOURCES})
set(DGAME_SOURCES ${DGAME_SOURCES} "${PROJECT_SOURCE_DIR}/dScripts/${file}")
endforeach()

Expand Down
45 changes: 45 additions & 0 deletions dScripts/02_server/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
set(DSCRIPTS_SOURCES_02_SERVER)

add_subdirectory(DLU)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_DLU})
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "DLU/${file}")
endforeach()

add_subdirectory(Enemy)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY})
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Enemy/${file}")
endforeach()

add_subdirectory(Equipment)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_EQUIPMENT})
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Equipment/${file}")
endforeach()

add_subdirectory(Map)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP})
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Map/${file}")
endforeach()

add_subdirectory(Minigame)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MINIGAME})
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Minigame/${file}")
endforeach()

add_subdirectory(Objects)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_OBJECTS})
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Objects/${file}")
endforeach()

add_subdirectory(Pets)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_PETS})
set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} "Pets/${file}")
endforeach()

set(DSCRIPTS_SOURCES_02_SERVER ${DSCRIPTS_SOURCES_02_SERVER} PARENT_SCOPE)
3 changes: 3 additions & 0 deletions dScripts/02_server/DLU/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(DSCRIPTS_SOURCES_02_SERVER_DLU
"DLUVanityNPC.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions dScripts/02_server/Enemy/AG/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_AG
"BossSpiderQueenEnemyServer.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions dScripts/02_server/Enemy/AM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_AM
"AmDarklingMech.cpp"
"AmSkeletonEngineer.cpp"
"AmDarklingDragon.cpp"
PARENT_SCOPE)
45 changes: 45 additions & 0 deletions dScripts/02_server/Enemy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY)

add_subdirectory(AG)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY_AG})
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} "AG/${file}")
endforeach()

add_subdirectory(AM)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY_AM})
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} "AM/${file}")
endforeach()

add_subdirectory(FV)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY_FV})
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} "FV/${file}")
endforeach()

add_subdirectory(General)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY_GENERAL})
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} "General/${file}")
endforeach()

add_subdirectory(Survival)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY_SURVIVAL})
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} "Survival/${file}")
endforeach()

add_subdirectory(VE)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY_VE})
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} "VE/${file}")
endforeach()

add_subdirectory(Waves)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_ENEMY_WAVES})
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} "Waves/${file}")
endforeach()

set(DSCRIPTS_SOURCES_02_SERVER_ENEMY ${DSCRIPTS_SOURCES_02_SERVER_ENEMY} PARENT_SCOPE)
4 changes: 4 additions & 0 deletions dScripts/02_server/Enemy/FV/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_FV
"FvMaelstromCavalry.cpp"
"FvMaelstromDragon.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions dScripts/02_server/Enemy/General/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_GENERAL
"BaseEnemyMech.cpp"
"BaseEnemyApe.cpp"
"GfApeSmashingQB.cpp"
"TreasureChestDragonServer.cpp"
"EnemyNjBuff.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions dScripts/02_server/Enemy/Survival/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_SURVIVAL
"AgSurvivalStromling.cpp"
"AgSurvivalMech.cpp"
"AgSurvivalSpiderling.cpp"
PARENT_SCOPE)
3 changes: 3 additions & 0 deletions dScripts/02_server/Enemy/VE/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_VE
"VeMech.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions dScripts/02_server/Enemy/Waves/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_WAVES
"WaveBossHammerling.cpp"
"WaveBossApe.cpp"
"WaveBossSpiderling.cpp"
"WaveBossHorsemen.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions dScripts/02_server/Equipment/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(DSCRIPTS_SOURCES_02_SERVER_EQUIPMENT
"MaestromExtracticatorServer.cpp"
"BootyDigServer.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions dScripts/02_server/Map/AG/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
set(DSCRIPTS_SOURCES_02_SERVER_MAP_AG
"AgCagedBricksServer.cpp"
"NpcWispServer.cpp"
"NpcEpsilonServer.cpp"
"AgLaserSensorServer.cpp"
"AgMonumentLaserServer.cpp"
"AgMonumentBirds.cpp"
"RemoveRentalGear.cpp"
"NpcNjAssistantServer.cpp"
"AgBugsprayer.cpp"
"NpcAgCourseStarter.cpp"
"AgMonumentRaceGoal.cpp"
"AgMonumentRaceCancel.cpp"
"NpcCowboyServer.cpp"
"NpcPirateServer.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions dScripts/02_server/Map/AG_Spider_Queen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
set(DSCRIPTS_SOURCES_02_SERVER_MAP_AG_SPIDER_QUEEN
"ZoneAgSpiderQueen.cpp"
"SpiderBossTreasureChestServer.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions dScripts/02_server/Map/AM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
set(DSCRIPTS_SOURCES_02_SERVER_MAP_AM
"AmConsoleTeleportServer.cpp"
"RandomSpawnerFin.cpp"
"RandomSpawnerPit.cpp"
"RandomSpawnerStr.cpp"
"RandomSpawnerZip.cpp"
"AmBridge.cpp"
"AmDrawBridge.cpp"
"AmShieldGenerator.cpp"
"AmShieldGeneratorQuickbuild.cpp"
"AmDropshipComputer.cpp"
"AmScrollReaderServer.cpp"
"AmTemplateSkillVolume.cpp"
"AmSkullkinDrill.cpp"
"AmSkullkinDrillStand.cpp"
"AmSkullkinTower.cpp"
"AmBlueX.cpp"
"AmTeapotServer.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
81 changes: 81 additions & 0 deletions dScripts/02_server/Map/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
set(DSCRIPTS_SOURCES_02_SERVER_MAP)

add_subdirectory(AG)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_AG})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "AG/${file}")
endforeach()

add_subdirectory(AG_Spider_Queen)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_AG_SPIDER_QUEEN})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "AG_Spider_Queen/${file}")
endforeach()

add_subdirectory(AM)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_AM})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "AM/${file}")
endforeach()

add_subdirectory(FV)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_FV})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "FV/${file}")
endforeach()

add_subdirectory(General)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_GENERAL})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "General/${file}")
endforeach()

add_subdirectory(GF)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_GF})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "GF/${file}")
endforeach()

add_subdirectory(njhub)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_NJHUB})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "njhub/${file}")
endforeach()

add_subdirectory(NS)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_NS})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "NS/${file}")
endforeach()

add_subdirectory(NT)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_NT})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "NT/${file}")
endforeach()

add_subdirectory(PR)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_PR})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "PR/${file}")
endforeach()

add_subdirectory(Property)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_PROPERTY})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "Property/${file}")
endforeach()

add_subdirectory(SS)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_SS})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "SS/${file}")
endforeach()

add_subdirectory(VE)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_VE})
set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} "VE/${file}")
endforeach()

set(DSCRIPTS_SOURCES_02_SERVER_MAP ${DSCRIPTS_SOURCES_02_SERVER_MAP} PARENT_SCOPE)
14 changes: 14 additions & 0 deletions dScripts/02_server/Map/FV/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
set(DSCRIPTS_SOURCES_02_SERVER_MAP_FV
"EnemyRoninSpawner.cpp"
"FvCandle.cpp"
"FvFong.cpp"
"FvHorsemenTrigger.cpp"
"ImgBrickConsoleQB.cpp")

add_subdirectory(Racing)

foreach(file ${DSCRIPTS_SOURCES_02_SERVER_MAP_FV_RACING})
set(DSCRIPTS_SOURCES_02_SERVER_MAP_FV ${DSCRIPTS_SOURCES_02_SERVER_MAP_FV} "Racing/${file}")
endforeach()

set(DSCRIPTS_SOURCES_02_SERVER_MAP_FV ${DSCRIPTS_SOURCES_02_SERVER_MAP_FV} PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions dScripts/02_server/Map/FV/Racing/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
set(DSCRIPTS_SOURCES_02_SERVER_MAP_FV_RACING
"RaceMaelstromGeiser.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions dScripts/02_server/Map/GF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set(DSCRIPTS_SOURCES_02_SERVER_MAP_GF
"GfTikiTorch.cpp"
"GfCaptainsCannon.cpp"
"MastTeleport.cpp"
"SpawnLionServer.cpp"
PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 8d37d9b

Please sign in to comment.