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_zone.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/spawn.cpp
gm_commands/spawneditmass.cpp
@ -583,6 +635,60 @@ source_group(set FILES
gm_commands/set/set_weather.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})
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)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

View File

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