normalize includes: ucs

This commit is contained in:
brainiac 2025-12-18 00:27:40 -08:00 committed by Alex
parent b7fcee632e
commit ed2344dc99
12 changed files with 110 additions and 143 deletions

View File

@ -24,6 +24,7 @@ install(TARGETS ucs RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
add_definitions(-DUCS)
target_link_libraries(ucs common)
target_include_directories(ucs PRIVATE ..)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set_property(TARGET ucs PROPERTY FOLDER executables/servers)

View File

@ -17,13 +17,15 @@
*/
#include "../common/eqemu_logsys.h"
#include "../common/strings.h"
#include "chatchannel.h"
#include "clientlist.h"
#include "database.h"
#include <cstdlib>
#include "common/eqemu_logsys.h"
#include "common/strings.h"
#include "ucs/clientlist.h"
#include "ucs/database.h"
#include <algorithm>
#include <cstdlib>
extern UCSDatabase database;
extern uint32 ChatMessagesSent;

View File

@ -1,9 +1,8 @@
#ifndef CHATCHANNEL_H
#define CHATCHANNEL_H
#pragma once
#include "common/linked_list.h"
#include "common/timer.h"
//#include "clientlist.h"
#include "../common/linked_list.h"
#include "../common/timer.h"
#include <string>
#include <vector>
@ -102,5 +101,3 @@ private:
};
std::string CapitaliseName(const std::string& inString);
#endif

View File

@ -17,22 +17,20 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "../common/global_define.h"
#include "../common/strings.h"
#include "../common/eqemu_logsys.h"
#include "../common/misc_functions.h"
#include "common/eqemu_logsys.h"
#include "common/misc_functions.h"
#include "common/path_manager.h"
#include "common/strings.h"
#include "ucs/chatchannel.h"
#include "ucs/clientlist.h"
#include "ucs/database.h"
#include "ucs/ucsconfig.h"
#include "ucsconfig.h"
#include "clientlist.h"
#include "database.h"
#include "chatchannel.h"
#include "../common/path_manager.h"
#include <list>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <cstdlib>
#include <list>
#include <string>
#include <vector>
extern UCSDatabase database;
extern std::string WorldShortName;

View File

@ -17,13 +17,13 @@
*/
#ifndef CHATSERVER_CLIENTLIST_H
#define CHATSERVER_CLIENTLIST_H
#pragma once
#include "common/net/eqstream.h"
#include "common/opcodemgr.h"
#include "common/rulesys.h"
#include "ucs/chatchannel.h"
#include "../common/opcodemgr.h"
#include "../common/net/eqstream.h"
#include "../common/rulesys.h"
#include "chatchannel.h"
#include <list>
#include <vector>
@ -197,5 +197,3 @@ private:
OpcodeManager *ChatOpMgr;
};
#endif

View File

@ -17,40 +17,26 @@
*/
#include "../common/global_define.h"
#include "../common/eqemu_logsys.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mysqld_error.h>
#include <limits.h>
#include <ctype.h>
#include <assert.h>
#include <map>
// Disgrace: for windows compile
#ifdef _WINDOWS
#include <windows.h>
#define snprintf _snprintf
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#else
#include "../common/unix.h"
#include <netinet/in.h>
#endif
#include "database.h"
#include "../common/eq_packet_structs.h"
#include "../common/misc_functions.h"
#include "../common/strings.h"
#include "chatchannel.h"
#include "../common/repositories/chatchannel_reserved_names_repository.h"
#include "../common/repositories/chatchannels_repository.h"
#include "../common/repositories/name_filter_repository.h"
#include "common/eq_packet_structs.h"
#include "common/eqemu_logsys.h"
#include "common/misc_functions.h"
#include "common/platform/platform.h"
#include "common/repositories/chatchannel_reserved_names_repository.h"
#include "common/repositories/chatchannels_repository.h"
#include "common/repositories/name_filter_repository.h"
#include "common/strings.h"
#include "ucs/chatchannel.h"
#include "mysqld_error.h"
#include <cassert>
#include <cctype>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
extern Clientlist *g_Clientlist;
extern std::string GetMailPrefix();

View File

@ -17,25 +17,23 @@
*/
#ifndef CHATSERVER_DATABASE_H
#define CHATSERVER_DATABASE_H
#pragma once
#include "common/database.h"
#include "common/database.h"
#include "common/linked_list.h"
#include "common/shareddb.h"
#include "common/types.h"
#include "ucs/chatchannel.h"
#include "ucs/clientlist.h"
#include <map>
#include <string>
#include <vector>
#define AUTHENTICATION_TIMEOUT 60
#define INVALID_ID 0xFFFFFFFF
#include "../common/global_define.h"
#include "../common/types.h"
#include "../common/database.h"
#include "../common/linked_list.h"
#include "../common/database.h"
#include "clientlist.h"
#include "chatchannel.h"
#include "../common/shareddb.h"
#include <string>
#include <vector>
#include <map>
class UCSDatabase : public Database {
public:
int FindAccount(const char *CharacterName, Client *c);
@ -62,6 +60,3 @@ public:
void RemoveFriendOrIgnore(const int& char_id, const int& type, const std::string& name);
void GetFriendsAndIgnore(const int& char_id, std::vector<std::string> &Friends, std::vector<std::string> &Ignorees);
};
#endif

View File

@ -17,30 +17,28 @@
*/
#include "../common/eqemu_logsys.h"
#include "../common/global_define.h"
#include "clientlist.h"
#include "../common/opcodemgr.h"
#include "../common/rulesys.h"
#include "../common/servertalk.h"
#include "../common/platform.h"
#include "../common/crash.h"
#include "../common/event/event_loop.h"
#include "database.h"
#include "ucsconfig.h"
#include "chatchannel.h"
#include "worldserver.h"
#include <list>
#include <signal.h>
#include <csignal>
#include <thread>
#include "common/crash.h"
#include "common/discord/discord_manager.h"
#include "common/eqemu_logsys.h"
#include "common/event/event_loop.h"
#include "common/events/player_event_logs.h"
#include "common/net/servertalk_client_connection.h"
#include "common/net/tcp_server.h"
#include "common/opcodemgr.h"
#include "common/path_manager.h"
#include "common/platform.h"
#include "common/rulesys.h"
#include "common/servertalk.h"
#include "common/zone_store.h"
#include "ucs/chatchannel.h"
#include "ucs/clientlist.h"
#include "ucs/database.h"
#include "ucs/ucsconfig.h"
#include "ucs/worldserver.h"
#include "../common/net/tcp_server.h"
#include "../common/net/servertalk_client_connection.h"
#include "../common/discord/discord_manager.h"
#include "../common/path_manager.h"
#include "../common/zone_store.h"
#include "../common/events/player_event_logs.h"
#include <csignal>
#include <list>
#include <thread>
ChatChannelList *ChannelList;
Clientlist *g_Clientlist;

View File

@ -17,7 +17,6 @@
*/
#include "../common/global_define.h"
#include "ucsconfig.h"
ucsconfig *ucsconfig::_chat_config = nullptr;
@ -25,4 +24,3 @@ ucsconfig *ucsconfig::_chat_config = nullptr;
std::string ucsconfig::GetByName(const std::string &var_name) const {
return(EQEmuConfig::GetByName(var_name));
}

View File

@ -17,10 +17,9 @@
*/
#ifndef __ucsconfig_H
#define __ucsconfig_H
#pragma once
#include "../common/eqemu_config.h"
#include "common/eqemu_config.h"
class ucsconfig : public EQEmuConfig {
public:
@ -50,6 +49,3 @@ public:
}
};
#endif

View File

@ -15,28 +15,27 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "../common/global_define.h"
#include "../common/eqemu_logsys.h"
#include "../common/servertalk.h"
#include "../common/misc_functions.h"
#include "../common/packet_functions.h"
#include "../common/md5.h"
#include "../common/strings.h"
#include "worldserver.h"
#include "clientlist.h"
#include "ucsconfig.h"
#include "database.h"
#include "../common/discord/discord_manager.h"
#include "../common/events/player_event_logs.h"
#include "../common/server_reload_types.h"
#include <iostream>
#include <string.h>
#include <stdio.h>
#include <iomanip>
#include <time.h>
#include <stdlib.h>
#include <stdarg.h>
#include "worldserver.h"
#include "common/discord/discord_manager.h"
#include "common/eqemu_logsys.h"
#include "common/events/player_event_logs.h"
#include "common/md5.h"
#include "common/misc_functions.h"
#include "common/packet_functions.h"
#include "common/server_reload_types.h"
#include "common/servertalk.h"
#include "common/strings.h"
#include "ucs/clientlist.h"
#include "ucs/database.h"
#include "ucs/ucsconfig.h"
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
extern WorldServer worldserver;
extern Clientlist *g_Clientlist;

View File

@ -15,11 +15,12 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef WORLDSERVER_H
#define WORLDSERVER_H
#include "../common/net/servertalk_client_connection.h"
#include "../common/eq_packet_structs.h"
#pragma once
#include "common/eq_packet_structs.h"
#include "common/net/servertalk_client_connection.h"
#include <memory>
class WorldServer
@ -33,5 +34,3 @@ private:
std::unique_ptr<EQ::Net::ServertalkClient> m_connection;
};
#endif