Convert show

This commit is contained in:
KimLS 2025-12-08 20:10:10 -08:00
parent daa9102cc6
commit d378f8b107
54 changed files with 165 additions and 58 deletions

View File

@ -489,6 +489,58 @@ set(gm_command_sources
gm_commands/set/set_weather.cpp gm_commands/set/set_weather.cpp
gm_commands/set/set_zone.cpp gm_commands/set/set_zone.cpp
gm_commands/show.cpp gm_commands/show.cpp
gm_commands/show/show_aas.cpp
gm_commands/show/show_aa_points.cpp
gm_commands/show/show_aggro.cpp
gm_commands/show/show_auto_login.cpp
gm_commands/show/show_buffs.cpp
gm_commands/show/show_buried_corpse_count.cpp
gm_commands/show/show_client_version_summary.cpp
gm_commands/show/show_content_flags.cpp
gm_commands/show/show_currencies.cpp
gm_commands/show/show_distance.cpp
gm_commands/show/show_emotes.cpp
gm_commands/show/show_field_of_view.cpp
gm_commands/show/show_flags.cpp
gm_commands/show/show_group_info.cpp
gm_commands/show/show_hatelist.cpp
gm_commands/show/show_inventory.cpp
gm_commands/show/show_ip_lookup.cpp
gm_commands/show/show_keyring.cpp
gm_commands/show/show_line_of_sight.cpp
gm_commands/show/show_network.cpp
gm_commands/show/show_network_stats.cpp
gm_commands/show/show_npc_global_loot.cpp
gm_commands/show/show_npc_stats.cpp
gm_commands/show/show_npc_type.cpp
gm_commands/show/show_peqzone_flags.cpp
gm_commands/show/show_petition.cpp
gm_commands/show/show_petition_info.cpp
gm_commands/show/show_proximity.cpp
gm_commands/show/show_quest_errors.cpp
gm_commands/show/show_quest_globals.cpp
gm_commands/show/show_recipe.cpp
gm_commands/show/show_server_info.cpp
gm_commands/show/show_skills.cpp
gm_commands/show/show_spawn_status.cpp
gm_commands/show/show_special_abilities.cpp
gm_commands/show/show_spells.cpp
gm_commands/show/show_spells_list.cpp
gm_commands/show/show_stats.cpp
gm_commands/show/show_timers.cpp
gm_commands/show/show_traps.cpp
gm_commands/show/show_uptime.cpp
gm_commands/show/show_variable.cpp
gm_commands/show/show_version.cpp
gm_commands/show/show_waypoints.cpp
gm_commands/show/show_who.cpp
gm_commands/show/show_xtargets.cpp
gm_commands/show/show_zone_data.cpp
gm_commands/show/show_zone_global_loot.cpp
gm_commands/show/show_zone_loot.cpp
gm_commands/show/show_zone_points.cpp
gm_commands/show/show_zone_status.cpp
gm_commands/show/show_zone_variables.cpp
gm_commands/shutdown.cpp gm_commands/shutdown.cpp
gm_commands/spawn.cpp gm_commands/spawn.cpp
gm_commands/spawneditmass.cpp gm_commands/spawneditmass.cpp
@ -583,6 +635,60 @@ source_group(set FILES
gm_commands/set/set_weather.cpp gm_commands/set/set_weather.cpp
gm_commands/set/set_zone.cpp) gm_commands/set/set_zone.cpp)
source_group(show FILES
gm_commands/show/show_aas.cpp
gm_commands/show/show_aa_points.cpp
gm_commands/show/show_aggro.cpp
gm_commands/show/show_auto_login.cpp
gm_commands/show/show_buffs.cpp
gm_commands/show/show_buried_corpse_count.cpp
gm_commands/show/show_client_version_summary.cpp
gm_commands/show/show_content_flags.cpp
gm_commands/show/show_currencies.cpp
gm_commands/show/show_distance.cpp
gm_commands/show/show_emotes.cpp
gm_commands/show/show_field_of_view.cpp
gm_commands/show/show_flags.cpp
gm_commands/show/show_group_info.cpp
gm_commands/show/show_hatelist.cpp
gm_commands/show/show_inventory.cpp
gm_commands/show/show_ip_lookup.cpp
gm_commands/show/show_keyring.cpp
gm_commands/show/show_line_of_sight.cpp
gm_commands/show/show_network.cpp
gm_commands/show/show_network_stats.cpp
gm_commands/show/show_npc_global_loot.cpp
gm_commands/show/show_npc_stats.cpp
gm_commands/show/show_npc_type.cpp
gm_commands/show/show_peqzone_flags.cpp
gm_commands/show/show_petition.cpp
gm_commands/show/show_petition_info.cpp
gm_commands/show/show_proximity.cpp
gm_commands/show/show_quest_errors.cpp
gm_commands/show/show_quest_globals.cpp
gm_commands/show/show_recipe.cpp
gm_commands/show/show_server_info.cpp
gm_commands/show/show_skills.cpp
gm_commands/show/show_spawn_status.cpp
gm_commands/show/show_special_abilities.cpp
gm_commands/show/show_spells.cpp
gm_commands/show/show_spells_list.cpp
gm_commands/show/show_stats.cpp
gm_commands/show/show_timers.cpp
gm_commands/show/show_traps.cpp
gm_commands/show/show_uptime.cpp
gm_commands/show/show_variable.cpp
gm_commands/show/show_version.cpp
gm_commands/show/show_waypoints.cpp
gm_commands/show/show_who.cpp
gm_commands/show/show_xtargets.cpp
gm_commands/show/show_zone_data.cpp
gm_commands/show/show_zone_global_loot.cpp
gm_commands/show/show_zone_loot.cpp
gm_commands/show/show_zone_points.cpp
gm_commands/show/show_zone_status.cpp
gm_commands/show/show_zone_variables.cpp)
add_library(gm_commands_zone STATIC ${gm_command_sources}) add_library(gm_commands_zone STATIC ${gm_command_sources})
target_link_libraries(gm_commands_zone PRIVATE cereal::cereal fmt::fmt $<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv> unofficial::libmariadb) target_link_libraries(gm_commands_zone PRIVATE cereal::cereal fmt::fmt $<IF:$<TARGET_EXISTS:libuv::uv_a>,libuv::uv_a,libuv::uv> unofficial::libmariadb)
set_target_properties(gm_commands_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 32) set_target_properties(gm_commands_zone PROPERTIES UNITY_BUILD ON UNITY_BUILD_BATCH_SIZE 32)

View File

@ -1,56 +1,57 @@
#include "../client.h" #include "../client.h"
#include "show/aas.cpp"
#include "show/aa_points.cpp" void ShowAAs(Client* c, const Seperator* sep);
#include "show/aggro.cpp" void ShowAAPoints(Client* c, const Seperator* sep);
#include "show/auto_login.cpp" void ShowAggro(Client* c, const Seperator* sep);
#include "show/buffs.cpp" void ShowAutoLogin(Client* c, const Seperator* sep);
#include "show/buried_corpse_count.cpp" void ShowBuffs(Client* c, const Seperator* sep);
#include "show/client_version_summary.cpp" void ShowBuriedCorpseCount(Client* c, const Seperator* sep);
#include "show/content_flags.cpp" void ShowClientVersionSummary(Client* c, const Seperator* sep);
#include "show/currencies.cpp" void ShowContentFlags(Client* c, const Seperator* sep);
#include "show/distance.cpp" void ShowCurrencies(Client* c, const Seperator* sep);
#include "show/emotes.cpp" void ShowDistance(Client* c, const Seperator* sep);
#include "show/field_of_view.cpp" void ShowEmotes(Client* c, const Seperator* sep);
#include "show/flags.cpp" void ShowFieldOfView(Client* c, const Seperator* sep);
#include "show/group_info.cpp" void ShowFlags(Client* c, const Seperator* sep);
#include "show/hatelist.cpp" void ShowGroupInfo(Client* c, const Seperator* sep);
#include "show/inventory.cpp" void ShowHateList(Client* c, const Seperator* sep);
#include "show/keyring.cpp" void ShowInventory(Client* c, const Seperator* sep);
#include "show/ip_lookup.cpp" void ShowIPLookup(Client* c, const Seperator* sep);
#include "show/line_of_sight.cpp" void ShowKeyring(Client* c, const Seperator* sep);
#include "show/network.cpp" void ShowLineOfSight(Client* c, const Seperator* sep);
#include "show/network_stats.cpp" void ShowNetwork(Client* c, const Seperator* sep);
#include "show/npc_global_loot.cpp" void ShowNetworkStats(Client* c, const Seperator* sep);
#include "show/npc_stats.cpp" void ShowNPCGlobalLoot(Client* c, const Seperator* sep);
#include "show/npc_type.cpp" void ShowNPCStats(Client* c, const Seperator* sep);
#include "show/peqzone_flags.cpp" void ShowNPCType(Client* c, const Seperator* sep);
#include "show/petition.cpp" void ShowPEQZoneFlags(Client* c, const Seperator* sep);
#include "show/petition_info.cpp" void ShowPetition(Client* c, const Seperator* sep);
#include "show/proximity.cpp" void ShowPetitionInfo(Client* c, const Seperator* sep);
#include "show/quest_errors.cpp" void ShowProximity(Client* c, const Seperator* sep);
#include "show/quest_globals.cpp" void ShowQuestErrors(Client* c, const Seperator* sep);
#include "show/recipe.cpp" void ShowQuestGlobals(Client* c, const Seperator* sep);
#include "show/server_info.cpp" void ShowRecipe(Client* c, const Seperator* sep);
#include "show/skills.cpp" void ShowServerInfo(Client* c, const Seperator* sep);
#include "show/spawn_status.cpp" void ShowSkills(Client* c, const Seperator* sep);
#include "show/special_abilities.cpp" void ShowSpawnStatus(Client* c, const Seperator* sep);
#include "show/spells.cpp" void ShowSpecialAbilities(Client* c, const Seperator* sep);
#include "show/spells_list.cpp" void ShowSpells(Client* c, const Seperator* sep);
#include "show/stats.cpp" void ShowSpellsList(Client* c, const Seperator* sep);
#include "show/timers.cpp" void ShowStats(Client* c, const Seperator* sep);
#include "show/traps.cpp" void ShowTimers(Client* c, const Seperator* sep);
#include "show/uptime.cpp" void ShowTraps(Client* c, const Seperator* sep);
#include "show/variable.cpp" void ShowUptime(Client* c, const Seperator* sep);
#include "show/version.cpp" void ShowVariable(Client* c, const Seperator* sep);
#include "show/waypoints.cpp" void ShowVersion(Client* c, const Seperator* sep);
#include "show/who.cpp" void ShowWaypoints(Client* c, const Seperator* sep);
#include "show/xtargets.cpp" void ShowWho(Client* c, const Seperator* sep);
#include "show/zone_data.cpp" void ShowXTargets(Client* c, const Seperator* sep);
#include "show/zone_global_loot.cpp" void ShowZoneData(Client* c, const Seperator* sep);
#include "show/zone_loot.cpp" void ShowZoneGlobalLoot(Client* c, const Seperator* sep);
#include "show/zone_points.cpp" void ShowZoneLoot(Client* c, const Seperator* sep);
#include "show/zone_status.cpp" void ShowZonePoints(Client* c, const Seperator* sep);
#include "show/zone_variables.cpp" void ShowZoneStatus(Client* c, const Seperator* sep);
void ShowZoneVariables(Client* c, const Seperator* sep);
void command_show(Client *c, const Seperator *sep) void command_show(Client *c, const Seperator *sep)
{ {

View File

@ -1,5 +1,5 @@
#include "../../client.h" #include "../../client.h"
#include "../../common/repositories/petitions_repository.h" #include "../../../common/repositories/petitions_repository.h"
void ShowPetition(Client *c, const Seperator *sep) void ShowPetition(Client *c, const Seperator *sep)
{ {

View File

@ -1,5 +1,5 @@
#include "../../client.h" #include "../../client.h"
#include "../../common/repositories/petitions_repository.h" #include "../../../common/repositories/petitions_repository.h"
void ShowPetitionInfo(Client *c, const Seperator *sep) void ShowPetitionInfo(Client *c, const Seperator *sep)
{ {

View File

@ -1,7 +1,7 @@
#include "../../client.h" #include "../../client.h"
#include "../../command.h" #include "../../command.h"
#include "../../common/repositories/tradeskill_recipe_repository.h" #include "../../../common/repositories/tradeskill_recipe_repository.h"
#include "../../common/repositories/tradeskill_recipe_entries_repository.h" #include "../../../common/repositories/tradeskill_recipe_entries_repository.h"
void ShowRecipe(Client *c, const Seperator *sep) void ShowRecipe(Client *c, const Seperator *sep)
{ {

View File

@ -1,6 +1,6 @@
#include "../../client.h" #include "../../client.h"
#include "../../dialogue_window.h" #include "../../dialogue_window.h"
#include "../../common/serverinfo.h" #include "../../../common/serverinfo.h"
void ShowServerInfo(Client *c, const Seperator *sep) void ShowServerInfo(Client *c, const Seperator *sep)
{ {

View File

View File

@ -1,5 +1,5 @@
#include "../../client.h" #include "../../client.h"
#include "../../common/data_verification.h" #include "../../../common/data_verification.h"
void ShowXTargets(Client *c, const Seperator *sep) void ShowXTargets(Client *c, const Seperator *sep)
{ {