1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 22:37:45 +00:00

Cleanup of cmake files

This commit is contained in:
Mordred Admin 2018-03-06 22:22:19 +01:00
parent ec0335b64a
commit b91e711834
120 changed files with 379 additions and 390 deletions

View file

@ -1,5 +1,5 @@
cmake_policy(SET CMP0014 NEW) cmake_policy(SET CMP0014 NEW)
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 3.0.2)
project (Sapphire) project (Sapphire)
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin) set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
@ -23,7 +23,6 @@ set(SAPPHIRE_BOOST_FOLDER_NAME boost_1_60_0)
########################################################################## ##########################################################################
# Common and library path # Common and library path
set(SERVER_COMMON_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/common")
set(LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/libraries") set(LIBRARY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/libraries")
########################################################################## ##########################################################################
@ -32,38 +31,22 @@ include( "cmake/boost.cmake" )
include( "cmake/mysql.cmake" ) include( "cmake/mysql.cmake" )
include( "cmake/compiler.cmake" ) include( "cmake/compiler.cmake" )
include( "cmake/cotire.cmake" ) include( "cmake/cotire.cmake" )
############################## ##############################
# Git # # Git #
############################## ##############################
include(GetGitRevisionDescription) include(GetGitRevisionDescription)
get_git_head_revision(GIT_REFSPEC GIT_SHA1) get_git_head_revision(GIT_REFSPEC GIT_SHA1)
git_describe(VERSION --all --dirty=-d) git_describe(VERSION --all --dirty=-d)
configure_file("${SERVER_COMMON_DIR}/Version.cpp.in" configure_file("src/common/Version.cpp.in"
"${SERVER_COMMON_DIR}/Version.cpp" @ONLY) "src/common/Version.cpp" @ONLY)
########################################################################## ##########################################################################
# Common include folders
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/libraries/sapphire/datReader/")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src/libraries/sapphire/mysqlConnector/")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/src")
include_directories("${PROJECT_INCLUDE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}")
##########################################################################
# Common lib folders
link_directories(${MYSQLCONNECTORCPP_LIBRARIES})
link_directories(${SERVER_COMMON_DIR})
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/libraries/sapphire/datReader)
add_subdirectory("src/servers")
add_subdirectory("src/libraries/sapphire/datReader") add_subdirectory("src/libraries/sapphire/datReader")
add_subdirectory("src/libraries/sapphire/mysqlConnector") add_subdirectory("src/libraries/sapphire/mysqlConnector")
add_subdirectory("src/common") add_subdirectory("src/common")
add_subdirectory("src/servers")
add_subdirectory("src/tools/exd_common_gen") add_subdirectory("src/tools/exd_common_gen")
add_subdirectory("src/tools/exd_struct_gen") add_subdirectory("src/tools/exd_struct_gen")
add_subdirectory("src/tools/exd_struct_test") add_subdirectory("src/tools/exd_struct_test")

View file

@ -1,12 +1,6 @@
cmake_minimum_required(VERSION 2.6) cmake_minimum_required( VERSION 3.0.2 )
project(Sapphire) project( Sapphire )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
file(GLOB UTILS_PUBLIC_INCLUDE_FILES
"${CMAKE_CURRENT_SOURCE_DIR}"
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
"${CMAKE_CURRENT_SOURCE_DIR}/Exd/*.h" )
file(GLOB UTILS_SOURCE_FILES file(GLOB UTILS_SOURCE_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Config/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/Config/*.cpp"
@ -18,13 +12,13 @@ file(GLOB UTILS_SOURCE_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/Network/PacketDef/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/Network/PacketDef/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Script/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/Script/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Util/*.cpp") "${CMAKE_CURRENT_SOURCE_DIR}/Util/*.cpp")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
add_library(common ${UTILS_PUBLIC_INCLUDE_FILES} ${UTILS_SOURCE_FILES})
set_target_properties(common PROPERTIES add_library( common ${UTILS_PUBLIC_INCLUDE_FILES} ${UTILS_SOURCE_FILES} )
set_target_properties( common PROPERTIES
CXX_STANDARD 14 CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS ON CXX_EXTENSIONS ON
@ -34,8 +28,14 @@ set_target_properties(common PROPERTIES
RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL "${CMAKE_CURRENT_SOURCE_DIR}/../../bin/" RUNTIME_OUTPUT_DIRECTORY_MINSIZEREL "${CMAKE_CURRENT_SOURCE_DIR}/../../bin/"
) )
if (UNIX) target_link_libraries( common PUBLIC xivdat )
target_link_libraries( common xivdat mysqlclient mysqlConnector ) target_link_libraries( common PUBLIC mysqlConnector )
if( UNIX )
target_link_libraries( common PUBLIC mysqlclient )
else() else()
target_link_libraries( common xivdat mysqlConnector libmysql ) target_link_libraries( common PUBLIC libmysql )
endif() endif()
target_include_directories( common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/" )
target_include_directories( common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/libraries/external/")

View file

@ -1,5 +1,5 @@
#include "CharaDbConnection.h" #include "CharaDbConnection.h"
#include <libraries/sapphire/mysqlConnector/MySqlConnector.h> #include <MySqlConnector.h>
Core::Db::CharaDbConnection::CharaDbConnection( ConnectionInfo& connInfo ) : DbConnection( connInfo ) Core::Db::CharaDbConnection::CharaDbConnection( ConnectionInfo& connInfo ) : DbConnection( connInfo )
{ {
@ -136,4 +136,4 @@ void Core::Db::CharaDbConnection::doPrepareStatements()
} }

View file

@ -1,11 +1,11 @@
#ifndef _DATABASEDEF_H #ifndef _DATABASEDEF_H
#define _DATABASEDEF_H #define _DATABASEDEF_H
#include "src/libraries/sapphire/mysqlConnector/MySqlConnector.h" #include <MySqlConnector.h>
#include <common/Database/DbLoader.h> #include "Database/DbLoader.h"
#include <common/Database/CharaDbConnection.h> #include "Database/CharaDbConnection.h"
#include <common/Database/DbWorkerPool.h> #include "Database/DbWorkerPool.h"
#include <common/Database/PreparedStatement.h> #include "Database/PreparedStatement.h"
extern Core::Db::DbWorkerPool< Core::Db::CharaDbConnection > g_charaDb; extern Core::Db::DbWorkerPool< Core::Db::CharaDbConnection > g_charaDb;

View file

@ -1,8 +1,8 @@
#include "DbConnection.h" #include "DbConnection.h"
#include "DbWorker.h" #include "DbWorker.h"
#include "src/libraries/sapphire/mysqlConnector/MySqlConnector.h" #include <MySqlConnector.h>
#include <common/Logging/Logger.h> #include "Logging/Logger.h"
#include "PreparedStatement.h" #include "PreparedStatement.h"
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>

View file

@ -6,7 +6,7 @@
#include <mutex> #include <mutex>
#include <string> #include <string>
#include <vector> #include <vector>
#include <common/Util/LockedWaitQueue.h> #include "Util/LockedWaitQueue.h"
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include <boost/enable_shared_from_this.hpp> #include <boost/enable_shared_from_this.hpp>

View file

@ -2,7 +2,7 @@
#include <mysqld_error.h> #include <mysqld_error.h>
#include "CharaDbConnection.h" #include "CharaDbConnection.h"
#include "DbWorkerPool.h" #include "DbWorkerPool.h"
#include <common/Logging/Logger.h> #include "Logging/Logger.h"
extern Core::Logger g_log; extern Core::Logger g_log;

View file

@ -1,6 +1,6 @@
#include "DbWorker.h" #include "DbWorker.h"
#include "Operation.h" #include "Operation.h"
#include <common/Util/LockedWaitQueue.h> #include "Util/LockedWaitQueue.h"
Core::Db::DbWorker::DbWorker( Core::LockedWaitQueue< boost::shared_ptr< Operation > >* newQueue, DbConnection* pConn ) Core::Db::DbWorker::DbWorker( Core::LockedWaitQueue< boost::shared_ptr< Operation > >* newQueue, DbConnection* pConn )
{ {

View file

@ -3,7 +3,7 @@
#include <atomic> #include <atomic>
#include <thread> #include <thread>
#include <common/Util/LockedWaitQueue.h> #include "Util/LockedWaitQueue.h"
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
namespace Core namespace Core

View file

@ -1,13 +1,13 @@
#include "DbWorkerPool.h" #include "DbWorkerPool.h"
#include "DbConnection.h" #include "DbConnection.h"
#include "PreparedStatement.h" #include "PreparedStatement.h"
#include <libraries/sapphire/mysqlConnector/MySqlConnector.h> #include <MySqlConnector.h>
#include "StatementTask.h" #include "StatementTask.h"
#include "Operation.h" #include "Operation.h"
#include "CharaDbConnection.h" #include "CharaDbConnection.h"
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <common/Logging/Logger.h> #include "Logging/Logger.h"
extern Core::Logger g_log; extern Core::Logger g_log;
class PingOperation : public Core::Db::Operation class PingOperation : public Core::Db::Operation

View file

@ -5,7 +5,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include <ResultSet.h> #include <ResultSet.h>
#include <common/Util/LockedWaitQueue.h> #include "Util/LockedWaitQueue.h"
#include "DbConnection.h" #include "DbConnection.h"
namespace Core namespace Core
{ {

View file

@ -1,6 +1,6 @@
#include <common/Network/Hive.h> #include "Hive.h"
#include "Acceptor.h" #include "Acceptor.h"
#include <common/Network/Connection.h> #include "Connection.h"
#include <boost/interprocess/detail/atomic.hpp> #include <boost/interprocess/detail/atomic.hpp>
#include <boost/bind.hpp> #include <boost/bind.hpp>

View file

@ -5,7 +5,7 @@
#include <boost/date_time/posix_time/posix_time.hpp> #include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/enable_shared_from_this.hpp> #include <boost/enable_shared_from_this.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <common/Forwards.h> #include "Forwards.h"
namespace Core namespace Core
{ {

View file

@ -9,7 +9,7 @@
#include <list> #include <list>
#include <boost/cstdint.hpp> #include <boost/cstdint.hpp>
#include <common/Forwards.h> #include "Forwards.h"
#include "Acceptor.h" #include "Acceptor.h"

View file

@ -5,7 +5,7 @@
#include <time.h> #include <time.h>
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Util/Util.h> #include "Util/Util.h"
Core::Network::Packets::GamePacket::GamePacket( uint16_t subType, uint16_t size, uint32_t id1, uint32_t id2, uint16_t type ) Core::Network::Packets::GamePacket::GamePacket( uint16_t subType, uint16_t size, uint32_t id1, uint32_t id2, uint16_t type )
{ {

View file

@ -2,7 +2,7 @@
#define _GAMEPACKET_H_ #define _GAMEPACKET_H_
#include "CommonNetwork.h" #include "CommonNetwork.h"
#include <common/Forwards.h> #include "Forwards.h"
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>

View file

@ -1,6 +1,6 @@
#include "PacketContainer.h" #include "PacketContainer.h"
#include "GamePacket.h" #include "GamePacket.h"
#include <common/Common.h> #include "Common.h"
#include <boost/format.hpp> #include <boost/format.hpp>

View file

@ -3,7 +3,7 @@
#include <vector> #include <vector>
#include <common/Common.h> #include "Common.h"
#include "CommonNetwork.h" #include "CommonNetwork.h"
#include "GamePacket.h" #include "GamePacket.h"

View file

@ -1,8 +1,8 @@
#ifndef _CORE_NETWORK_PACKETS_CHAT_SERVER_IPC_H #ifndef _CORE_NETWORK_PACKETS_CHAT_SERVER_IPC_H
#define _CORE_NETWORK_PACKETS_CHAT_SERVER_IPC_H #define _CORE_NETWORK_PACKETS_CHAT_SERVER_IPC_H
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
namespace Core { namespace Core {
namespace Network { namespace Network {

View file

@ -1,8 +1,8 @@
#ifndef _CORE_NETWORK_PACKETS_LOBBY_SERVER_IPC_H #ifndef _CORE_NETWORK_PACKETS_LOBBY_SERVER_IPC_H
#define _CORE_NETWORK_PACKETS_LOBBY_SERVER_IPC_H #define _CORE_NETWORK_PACKETS_LOBBY_SERVER_IPC_H
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
namespace Core { namespace Core {
namespace Network { namespace Network {

View file

@ -7,8 +7,8 @@
#ifndef _CORE_NETWORK_PACKETS_ZONE_SERVER_IPC_H #ifndef _CORE_NETWORK_PACKETS_ZONE_SERVER_IPC_H
#define _CORE_NETWORK_PACKETS_ZONE_SERVER_IPC_H #define _CORE_NETWORK_PACKETS_ZONE_SERVER_IPC_H
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
namespace Core { namespace Core {
namespace Network { namespace Network {

View file

@ -1,7 +1,7 @@
#ifndef _UTILMATH_H #ifndef _UTILMATH_H
#define _UTILMATH_H #define _UTILMATH_H
#include <common/Common.h> #include "Common.h"
#define PI 3.14159265358979323846f #define PI 3.14159265358979323846f

View file

@ -7,7 +7,6 @@ file(GLOB SERVER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}*.c*")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/")
add_executable(sapphire_api ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES}) add_executable(sapphire_api ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES})
add_dependencies(sapphire_api common xivdat)
set_target_properties(sapphire_api PROPERTIES set_target_properties(sapphire_api PROPERTIES
CXX_STANDARD 14 CXX_STANDARD 14
@ -21,13 +20,9 @@ set_target_properties(sapphire_api PROPERTIES
) )
if (UNIX) if (UNIX)
target_link_libraries (sapphire_api common xivdat pthread mysqlclient mysqlConnector dl z) target_link_libraries (sapphire_api common pthread dl z)
else() else()
# ignore unchecked iterators warnings from msvc target_link_libraries (sapphire_api common zlib1)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
target_link_libraries (sapphire_api common xivdat libmysql mysqlConnector zlib1)
endif() endif()
target_link_libraries( sapphire_api ${Boost_LIBRARIES} ${Boost_LIBRARIES} ) target_link_libraries( sapphire_api ${Boost_LIBRARIES} ${Boost_LIBRARIES} )

View file

@ -1,10 +1,10 @@
#include "PlayerMinimal.h" #include "PlayerMinimal.h"
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Common.h> #include <Common.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
extern Core::Data::ExdDataGenerated g_exdDataGen; extern Core::Data::ExdDataGenerated g_exdDataGen;

View file

@ -1,5 +1,5 @@
#include "SapphireAPI.h" #include "SapphireAPI.h"
#include <common/Crypt/base64.h> #include <Crypt/base64.h>
#include "Session.h" #include "Session.h"
#include "PlayerMinimal.h" #include "PlayerMinimal.h"
#include <time.h> #include <time.h>
@ -11,7 +11,7 @@
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
Core::Network::SapphireAPI::SapphireAPI() Core::Network::SapphireAPI::SapphireAPI()

View file

@ -6,20 +6,20 @@
#include <boost/property_tree/xml_parser.hpp> #include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/json_parser.hpp>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Config/XMLConfig.h> #include <Config/XMLConfig.h>
#include <common/Network/Connection.h> #include <Network/Connection.h>
#include <common/Network/Hive.h> #include <Network/Hive.h>
#include <common/Network/Acceptor.h> #include <Network/Acceptor.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Crypt/base64.h> #include <Crypt/base64.h>
#include <common/Database/DbLoader.h> #include <Database/DbLoader.h>
#include <common/Database/CharaDbConnection.h> #include <Database/CharaDbConnection.h>
#include <common/Database/DbWorkerPool.h> #include <Database/DbWorkerPool.h>
#include <common/Database/PreparedStatement.h> #include <Database/PreparedStatement.h>
//Added for the default_resource example //Added for the default_resource example
#include <fstream> #include <fstream>

View file

@ -8,7 +8,6 @@ file(GLOB SERVER_SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}*.c*")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/")
add_executable(sapphire_lobby ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES}) add_executable(sapphire_lobby ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES})
add_dependencies(sapphire_lobby common xivdat)
set_target_properties(sapphire_lobby PROPERTIES set_target_properties(sapphire_lobby PROPERTIES
CXX_STANDARD 14 CXX_STANDARD 14
@ -22,9 +21,10 @@ set_target_properties(sapphire_lobby PROPERTIES
) )
if (UNIX) if (UNIX)
target_link_libraries(sapphire_lobby common xivdat pthread mysqlclient mysqlConnector dl z) target_link_libraries(sapphire_lobby common pthread dl z)
else() else()
target_link_libraries(sapphire_lobby common xivdat libmysql mysqlConnector zlib1) target_link_libraries(sapphire_lobby common zlib1)
endif() endif()
target_link_libraries(sapphire_lobby ${Boost_LIBRARIES} ${Boost_LIBRARIES}) target_link_libraries(sapphire_lobby ${Boost_LIBRARIES} ${Boost_LIBRARIES})
cotire( sapphire_lobby )

View file

@ -1,15 +1,15 @@
#include "GameConnection.h" #include "GameConnection.h"
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Lobby/ServerLobbyDef.h> #include <Network/PacketDef/Lobby/ServerLobbyDef.h>
#include <common/Network/GamePacketParser.h> #include <Network/GamePacketParser.h>
#include <common/Crypt/md5.h> #include <Crypt/md5.h>
#include <common/Crypt/blowfish.h> #include <Crypt/blowfish.h>
#include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/json_parser.hpp>

View file

@ -1,13 +1,13 @@
#ifndef GAMECONNECTION_H #ifndef GAMECONNECTION_H
#define GAMECONNECTION_H #define GAMECONNECTION_H
#include <common/Network/Connection.h> #include <Network/Connection.h>
#include <common/Network/Acceptor.h> #include <Network/Acceptor.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Util/LockedQueue.h> #include <Util/LockedQueue.h>
#include "LobbyPacketContainer.h" #include "LobbyPacketContainer.h"

View file

@ -1,7 +1,7 @@
#include "LobbyPacketContainer.h" #include "LobbyPacketContainer.h"
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Crypt/blowfish.h> #include <Crypt/blowfish.h>
namespace Core { namespace Core {
namespace Network { namespace Network {

View file

@ -4,8 +4,8 @@
#include <vector> #include <vector>
#include <string.h> #include <string.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,8 +1,8 @@
#include "RestConnector.h" #include "RestConnector.h"
#include "LobbySession.h" #include "LobbySession.h"
#include "ServerLobby.h" #include "ServerLobby.h"
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Crypt/base64.h> #include <Crypt/base64.h>
#include <time.h> #include <time.h>
#include <iomanip> #include <iomanip>

View file

@ -3,12 +3,12 @@
#include <time.h> #include <time.h>
#include <map> #include <map>
#include <common/Network/Hive.h> #include <Network/Hive.h>
#include <common/Network/Acceptor.h> #include <Network/Acceptor.h>
#include <common/Version.h> #include <Version.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Config/XMLConfig.h> #include <Config/XMLConfig.h>
//#include "LobbySession.h" //#include "LobbySession.h"

View file

@ -6,7 +6,7 @@
#include <map> #include <map>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <common/Config/XMLConfig.h> #include <Config/XMLConfig.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,6 +1,6 @@
#include "Action.h" #include "Action.h"
#include <common/Util/Util.h> #include <Util/Util.h>
Core::Action::Action::Action() Core::Action::Action::Action()

View file

@ -1,7 +1,7 @@
#ifndef _ACTION_H_ #ifndef _ACTION_H_
#define _ACTION_H_ #define _ACTION_H_
#include <common/Common.h> #include <Common.h>
#include "../Forwards.h" #include "../Forwards.h"
namespace Core { namespace Core {

View file

@ -1,8 +1,8 @@
#include <common/Common.h> #include <Common.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h" #include "Network/PacketWrappers/ActorControlPacket143.h"

View file

@ -1,7 +1,7 @@
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include "ActionCollision.h" #include "ActionCollision.h"
#include "Actor/Actor.h" #include "Actor/Actor.h"

View file

@ -1,7 +1,7 @@
#ifndef _ACTIONCOLLISION_H #ifndef _ACTIONCOLLISION_H
#define _ACTIONCOLLISION_H #define _ACTIONCOLLISION_H
#include <common/Common.h> #include <Common.h>
#include "Action.h" #include "Action.h"

View file

@ -1,7 +1,7 @@
#include <common/Common.h> #include <Common.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h" #include "Network/PacketWrappers/ActorControlPacket143.h"

View file

@ -1,6 +1,6 @@
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h" #include "Network/PacketWrappers/ActorControlPacket143.h"

View file

@ -1,6 +1,6 @@
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h" #include "Network/PacketWrappers/ActorControlPacket143.h"

View file

@ -1,7 +1,7 @@
#ifndef _EVENTACTION_H_ #ifndef _EVENTACTION_H_
#define _EVENTACTION_H_ #define _EVENTACTION_H_
#include <common/Common.h> #include <Common.h>
#include "../Forwards.h" #include "../Forwards.h"
#include "Action.h" #include "Action.h"

View file

@ -1,8 +1,8 @@
#include <string.h> #include <string.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"
#include "Network/PacketWrappers/ActorControlPacket143.h" #include "Network/PacketWrappers/ActorControlPacket143.h"

View file

@ -1,9 +1,9 @@
#include "Actor.h" #include "Actor.h"
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include "Forwards.h" #include "Forwards.h"
#include "Action/Action.h" #include "Action/Action.h"

View file

@ -1,7 +1,7 @@
#ifndef _GAME_OBJECT_H_ #ifndef _GAME_OBJECT_H_
#define _GAME_OBJECT_H_ #define _GAME_OBJECT_H_
#include <common/Common.h> #include <Common.h>
#include <boost/enable_shared_from_this.hpp> #include <boost/enable_shared_from_this.hpp>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,8 +1,8 @@
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include "Forwards.h" #include "Forwards.h"
#include "Action/Action.h" #include "Action/Action.h"

View file

@ -1,7 +1,7 @@
#ifndef _ACTOR_H_ #ifndef _ACTOR_H_
#define _ACTOR_H_ #define _ACTOR_H_
#include <common/Common.h> #include <Common.h>
#include <boost/enable_shared_from_this.hpp> #include <boost/enable_shared_from_this.hpp>
#include "Forwards.h" #include "Forwards.h"

View file

@ -3,13 +3,13 @@
#include "Zone/InstanceContent.h" #include "Zone/InstanceContent.h"
#include "Actor/Player.h" #include "Actor/Player.h"
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
using namespace Core::Common; using namespace Core::Common;
using namespace Core::Network::Packets; using namespace Core::Network::Packets;

View file

@ -1,13 +1,13 @@
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Config/XMLConfig.h> #include <Config/XMLConfig.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include "Session.h" #include "Session.h"
#include "Player.h" #include "Player.h"

View file

@ -3,8 +3,8 @@
#include "Forwards.h" #include "Forwards.h"
#include <common/Common.h> #include <Common.h>
#include <common/Util/SpawnIndexAllocator.h> #include <Util/SpawnIndexAllocator.h>
#include "Chara.h" #include "Chara.h"
#include "Inventory/Inventory.h" #include "Inventory/Inventory.h"

View file

@ -1,8 +1,8 @@
#include <common/Common.h> #include <Common.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Config/XMLConfig.h> #include <Config/XMLConfig.h>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/ActorControlPacket142.h" #include "Network/PacketWrappers/ActorControlPacket142.h"

View file

@ -1,6 +1,6 @@
#include <common/Common.h> #include <Common.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include "Zone/Zone.h" #include "Zone/Zone.h"

View file

@ -1,8 +1,8 @@
#include <common/Common.h> #include <Common.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/QuestMessagePacket.h" #include "Network/PacketWrappers/QuestMessagePacket.h"

View file

@ -2,16 +2,16 @@
#include <stdio.h> #include <stdio.h>
#include <time.h> #include <time.h>
#include <common/Common.h> #include <Common.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Config/XMLConfig.h> #include <Config/XMLConfig.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Common.h> #include <Common.h>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/InitUIPacket.h" #include "Network/PacketWrappers/InitUIPacket.h"

View file

@ -1,11 +1,10 @@
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 3.0.2)
cmake_policy(SET CMP0015 NEW) cmake_policy(SET CMP0015 NEW)
cmake_policy(SET CMP0014 OLD) cmake_policy(SET CMP0014 OLD)
add_subdirectory("Script/Scripts") add_subdirectory("Script/Scripts")
project(sapphire_zone) project(sapphire_zone)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} )
file(GLOB SERVER_PUBLIC_INCLUDE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} file(GLOB SERVER_PUBLIC_INCLUDE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
/*.h /*.h
@ -42,7 +41,6 @@ file(GLOB SERVER_SOURCE_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/")
add_executable(sapphire_zone ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES} ) add_executable(sapphire_zone ${SERVER_PUBLIC_INCLUDE_FILES} ${SERVER_SOURCE_FILES} )
add_dependencies(sapphire_zone common xivdat mysqlConnector )
set_target_properties(sapphire_zone PROPERTIES set_target_properties(sapphire_zone PROPERTIES
CXX_STANDARD 14 CXX_STANDARD 14
@ -57,11 +55,19 @@ set_target_properties(sapphire_zone PROPERTIES
VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/" VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../../../bin/"
) )
target_link_libraries( sapphire_zone common )
if (UNIX) if (UNIX)
target_link_libraries ( sapphire_zone common xivdat pthread mysqlclient mysqlConnector dl z ) target_link_libraries( sapphire_zone pthread )
target_link_libraries( sapphire_zone dl )
target_link_libraries( sapphire_zone z )
else() else()
target_link_libraries ( sapphire_zone common xivdat libmysql zlib1 mysqlConnector ) target_link_libraries( sapphire_zone zlib1 )
endif() endif()
target_link_libraries( sapphire_zone ${Boost_LIBRARIES} ) target_link_libraries( sapphire_zone ${Boost_LIBRARIES} )
target_include_directories( sapphire_zone PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" )
target_include_directories( sapphire_zone PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Script" )
target_include_directories( sapphire_zone PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/Script/Scripts" )
target_include_directories( sapphire_zone PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../../libraries/external" )
cotire( sapphire_zone ) cotire( sapphire_zone )

View file

@ -1,7 +1,7 @@
#ifndef _GAMECOMMAND_H_ #ifndef _GAMECOMMAND_H_
#define _GAMECOMMAND_H_ #define _GAMECOMMAND_H_
#include <common/Common.h> #include <Common.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -3,15 +3,15 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <cinttypes> #include <cinttypes>
#include <common/Common.h> #include <Common.h>
#include <common/Version.h> #include <Version.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include "DebugCommand.h" #include "DebugCommand.h"
#include "DebugCommandHandler.h" #include "DebugCommandHandler.h"

View file

@ -2,9 +2,9 @@
#define _GAMECOMMANDHANDLER_H_ #define _GAMECOMMANDHANDLER_H_
#include <map> #include <map>
#include <Common.h>
#include "DebugCommand.h" #include "DebugCommand.h"
#include <common/Common.h>
#include "Forwards.h" #include "Forwards.h"
namespace Core { namespace Core {

View file

@ -1,7 +1,7 @@
#include "Director.h" #include "Director.h"
#include <common/Network/PacketDef/Ipcs.h> #include <Network/PacketDef/Ipcs.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Actor/Player.h" #include "Actor/Player.h"

View file

@ -1,7 +1,7 @@
#ifndef SAPPHIRE_DIRECTOR_H #ifndef SAPPHIRE_DIRECTOR_H
#define SAPPHIRE_DIRECTOR_H #define SAPPHIRE_DIRECTOR_H
#include <common/Common.h> #include <Common.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,5 +1,5 @@
#include <common/Common.h> #include <Common.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include "Framework.h" #include "Framework.h"
#include "EventHelper.h" #include "EventHelper.h"
#include "EventHandler.h" #include "EventHandler.h"

View file

@ -6,12 +6,12 @@
#include "Forwards.h" #include "Forwards.h"
#include "ServerZone.h" #include "ServerZone.h"
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <Exd/ExdDataGenerated.h>
#include <common/Exd/ExdDataGenerated.h> #include <Database/CharaDbConnection.h>
#include <Database/DbWorkerPool.h>
#include "Script/ScriptMgr.h" #include "Script/ScriptMgr.h"
@ -21,8 +21,6 @@
#include "DebugCommand/DebugCommandHandler.h" #include "DebugCommand/DebugCommandHandler.h"
#include <common/Database/CharaDbConnection.h>
#include <common/Database/DbWorkerPool.h>
namespace Core namespace Core
{ {

View file

@ -1,11 +1,11 @@
#include <boost/lexical_cast.hpp> #include <boost/lexical_cast.hpp>
#include <boost/algorithm/clamp.hpp> #include <boost/algorithm/clamp.hpp>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include <common/Common.h> #include <Common.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include "Actor/Player.h" #include "Actor/Player.h"

View file

@ -1,7 +1,7 @@
#ifndef INVENTORY_H_ #ifndef INVENTORY_H_
#define INVENTORY_H_ #define INVENTORY_H_
#include <map> #include <map>
#include <common/Common.h> #include <Common.h>
#include "../Forwards.h" #include "../Forwards.h"
namespace Core namespace Core

View file

@ -1,5 +1,5 @@
#include <common/Common.h> #include <Common.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include "Framework.h" #include "Framework.h"
#include "Item.h" #include "Item.h"

View file

@ -1,7 +1,7 @@
#ifndef _ITEM_H_ #ifndef _ITEM_H_
#define _ITEM_H_ #define _ITEM_H_
#include <common/Common.h> #include <Common.h>
namespace Core { namespace Core {

View file

@ -1,6 +1,6 @@
#include <common/Common.h> #include <Common.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include "Actor/Player.h" #include "Actor/Player.h"

View file

@ -3,7 +3,7 @@
#include <map> #include <map>
#include <common/Common.h> #include <Common.h>
#include "../Forwards.h" #include "../Forwards.h"

View file

@ -1,7 +1,7 @@
#ifndef CORE_LINKSHELL_H #ifndef CORE_LINKSHELL_H
#define CORE_LINKSHELL_H #define CORE_LINKSHELL_H
#include <common/Common.h> #include <Common.h>
#include <set> #include <set>
namespace Core namespace Core

View file

@ -1,7 +1,7 @@
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include "Linkshell.h" #include "Linkshell.h"
#include "Framework.h" #include "Framework.h"

View file

@ -1,7 +1,7 @@
#include <cmath> #include <cmath>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Common.h> #include <Common.h>
#include "Actor/Chara.h" #include "Actor/Chara.h"

View file

@ -1,7 +1,7 @@
#ifndef _CALCBATTLE_H #ifndef _CALCBATTLE_H
#define _CALCBATTLE_H #define _CALCBATTLE_H
#include <common/Common.h> #include <Common.h>
#include "Forwards.h" #include "Forwards.h"
using namespace Core::Entity; using namespace Core::Entity;

View file

@ -1,7 +1,7 @@
#include <cmath> #include <cmath>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Common.h> #include <Common.h>
#include "Actor/Chara.h" #include "Actor/Chara.h"

View file

@ -1,7 +1,7 @@
#ifndef _CALCSTATS_H #ifndef _CALCSTATS_H
#define _CALCSTATS_H #define _CALCSTATS_H
#include <common/Common.h> #include <Common.h>
#include "Forwards.h" #include "Forwards.h"
using namespace Core::Entity; using namespace Core::Entity;

View file

@ -1,11 +1,11 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Network/GamePacketParser.h> #include <Network/GamePacketParser.h>
#include "Zone/Zone.h" #include "Zone/Zone.h"

View file

@ -1,11 +1,11 @@
#ifndef GAMECONNECTION_H #ifndef GAMECONNECTION_H
#define GAMECONNECTION_H #define GAMECONNECTION_H
#include <common/Network/Connection.h> #include <Network/Connection.h>
#include <common/Network/Acceptor.h> #include <Network/Acceptor.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacket.h> #include <Network/GamePacket.h>
#include <common/Util/LockedQueue.h> #include <Util/LockedQueue.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,11 +1,11 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include "Zone/Zone.h" #include "Zone/Zone.h"
#include "Zone/ZonePosition.h" #include "Zone/ZonePosition.h"

View file

@ -1,9 +1,9 @@
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include "Zone/TerritoryMgr.h" #include "Zone/TerritoryMgr.h"
#include "Zone/Zone.h" #include "Zone/Zone.h"

View file

@ -1,11 +1,11 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/ServerNoticePacket.h" #include "Network/PacketWrappers/ServerNoticePacket.h"

View file

@ -1,10 +1,10 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <unordered_map> #include <unordered_map>
#include <boost/format.hpp> #include <boost/format.hpp>

View file

@ -1,10 +1,10 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/ServerNoticePacket.h" #include "Network/PacketWrappers/ServerNoticePacket.h"

View file

@ -1,12 +1,12 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Network/PacketDef/Chat/ServerChatDef.h> #include <Network/PacketDef/Chat/ServerChatDef.h>
#include <common/Database/DatabaseDef.h> #include <Database/DatabaseDef.h>
#include <boost/format.hpp> #include <boost/format.hpp>
#include <unordered_map> #include <unordered_map>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"

View file

@ -1,11 +1,11 @@
#include <boost/format.hpp> #include <boost/format.hpp>
#include <common/Common.h> #include <Common.h>
#include <common/Network/CommonNetwork.h> #include <Network/CommonNetwork.h>
#include <common/Exd/ExdDataGenerated.h> #include <Exd/ExdDataGenerated.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketContainer.h> #include <Network/PacketContainer.h>
#include <common/Logging/Logger.h> #include <Logging/Logger.h>
#include "Network/GameConnection.h" #include "Network/GameConnection.h"
#include "Network/PacketWrappers/ServerNoticePacket.h" #include "Network/PacketWrappers/ServerNoticePacket.h"

View file

@ -1,8 +1,8 @@
#ifndef _ACTORCONTROL142_H #ifndef _ACTORCONTROL142_H
#define _ACTORCONTROL142_H #define _ACTORCONTROL142_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Forwards.h" #include "Forwards.h"
namespace Core { namespace Core {

View file

@ -1,8 +1,8 @@
#ifndef _ACTORCONTROL143_H #ifndef _ACTORCONTROL143_H
#define _ACTORCONTROL143_H #define _ACTORCONTROL143_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,8 +1,8 @@
#ifndef _ACTORCONTROL144_H #ifndef _ACTORCONTROL144_H
#define _ACTORCONTROL144_H #define _ACTORCONTROL144_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
namespace Core { namespace Core {
namespace Network { namespace Network {

View file

@ -1,8 +1,8 @@
#ifndef _CHATPACKET_H #ifndef _CHATPACKET_H
#define _CHATPACKET_H #define _CHATPACKET_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,7 +1,7 @@
#ifndef _DIRECTORPLAYSCENE_H #ifndef _DIRECTORPLAYSCENE_H
#define _DIRECTORPLAYSCENE_H #define _DIRECTORPLAYSCENE_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include "Forwards.h" #include "Forwards.h"
namespace Core { namespace Core {

View file

@ -1,7 +1,7 @@
#ifndef _EVENTFINISH_H #ifndef _EVENTFINISH_H
#define _EVENTFINISH_H #define _EVENTFINISH_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
namespace Core { namespace Core {
namespace Network { namespace Network {

View file

@ -1,7 +1,7 @@
#ifndef _EVENTPLAY_H #ifndef _EVENTPLAY_H
#define _EVENTPLAY_H #define _EVENTPLAY_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include "Forwards.h" #include "Forwards.h"
namespace Core { namespace Core {

View file

@ -1,7 +1,7 @@
#ifndef _EVENTSTART_H #ifndef _EVENTSTART_H
#define _EVENTSTART_H #define _EVENTSTART_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include "Forwards.h" #include "Forwards.h"
namespace Core { namespace Core {

View file

@ -1,8 +1,8 @@
#ifndef _CORE_NETWORK_PACKETS_INITUIPACKET_H #ifndef _CORE_NETWORK_PACKETS_INITUIPACKET_H
#define _CORE_NETWORK_PACKETS_INITUIPACKET_H #define _CORE_NETWORK_PACKETS_INITUIPACKET_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Actor/Player.h" #include "Actor/Player.h"
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,7 +1,7 @@
#ifndef _MODELEQUIPPACKET_H #ifndef _MODELEQUIPPACKET_H
#define _MODELEQUIPPACKET_H #define _MODELEQUIPPACKET_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include "Actor/Player.h" #include "Actor/Player.h"
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,9 +1,9 @@
#ifndef _MOVEACTORPACKET_H #ifndef _MOVEACTORPACKET_H
#define _MOVEACTORPACKET_H #define _MOVEACTORPACKET_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include <common/Util/UtilMath.h> #include <Util/UtilMath.h>
#include "Actor/Player.h" #include "Actor/Player.h"
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,7 +1,7 @@
#ifndef _CORE_NETWORK_PACKETS_PINGPACKET_H #ifndef _CORE_NETWORK_PACKETS_PINGPACKET_H
#define _CORE_NETWORK_PACKETS_PINGPACKET_H #define _CORE_NETWORK_PACKETS_PINGPACKET_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,9 +1,9 @@
#ifndef _PLAYERSPAWN_H #ifndef _PLAYERSPAWN_H
#define _PLAYERSPAWN_H #define _PLAYERSPAWN_H
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Util/Util.h> #include <Util/Util.h>
#include "Actor/Player.h" #include "Actor/Player.h"
#include "Forwards.h" #include "Forwards.h"
#include "Inventory/Inventory.h" #include "Inventory/Inventory.h"

View file

@ -1,7 +1,7 @@
#ifndef _PLAYERSTATE_H #ifndef _PLAYERSTATE_H
#define _PLAYERSTATE_H #define _PLAYERSTATE_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include "Actor/Player.h" #include "Actor/Player.h"
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,7 +1,7 @@
#ifndef _QUESTMESSAGE_H #ifndef _QUESTMESSAGE_H
#define _QUESTMESSAGE_H #define _QUESTMESSAGE_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include "Actor/Player.h" #include "Actor/Player.h"
#include "Forwards.h" #include "Forwards.h"

View file

@ -1,8 +1,8 @@
#ifndef _SERVERNOTICEPACKET_H #ifndef _SERVERNOTICEPACKET_H
#define _SERVERNOTICEPACKET_H #define _SERVERNOTICEPACKET_H
#include <common/Network/GamePacketNew.h> #include <Network/GamePacketNew.h>
#include <common/Network/PacketDef/Zone/ServerZoneDef.h> #include <Network/PacketDef/Zone/ServerZoneDef.h>
#include "Forwards.h" #include "Forwards.h"
namespace Core { namespace Core {

Some files were not shown because too many files have changed in this diff Show more