mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-12 19:28:21 +00:00
a62f6d63c6
* Moving and organizing Player code - Move code to CharacterComponent - Remove extraneous interfaces - Simplify some code greatly - Change some types to return and take in const ref (only structs larger than 8 bytes benefit from this change.) - Update code to use CharacterComponent for sending to zone instead of Player*. * Moving and organizing Player code - Move code to CharacterComponent - Remove extraneous interfaces - Simplify some code greatly - Change some types to return and take in const ref (only structs larger than 8 bytes benefit from this change.) - Update code to use CharacterComponent for sending to zone instead of Player*. - Remove static storage container (static containers can be destroyed before exit/terminate handler executes) * remove player cast * Remove extra includes * Add a player manager Used for the static Player functions. Further removes stuff from the Player class/file.
36 lines
916 B
CMake
36 lines
916 B
CMake
set(DGAME_SOURCES "Character.cpp"
|
|
"Entity.cpp"
|
|
"EntityManager.cpp"
|
|
"LeaderboardManager.cpp"
|
|
"Player.cpp"
|
|
"PlayerManager.cpp"
|
|
"TeamManager.cpp"
|
|
"TradingManager.cpp"
|
|
"User.cpp"
|
|
"UserManager.cpp")
|
|
|
|
include_directories(
|
|
${PROJECT_SOURCE_DIR}/dScripts
|
|
${PROJECT_SOURCE_DIR}/dGame
|
|
)
|
|
|
|
add_library(dGameBase ${DGAME_SOURCES})
|
|
target_precompile_headers(dGameBase PRIVATE ${HEADERS_DGAME})
|
|
target_link_libraries(dGameBase
|
|
PUBLIC dDatabase dPhysics
|
|
INTERFACE dComponents dEntity)
|
|
|
|
add_subdirectory(dBehaviors)
|
|
add_subdirectory(dComponents)
|
|
add_subdirectory(dEntity)
|
|
add_subdirectory(dGameMessages)
|
|
add_subdirectory(dInventory)
|
|
add_subdirectory(dMission)
|
|
add_subdirectory(dPropertyBehaviors)
|
|
add_subdirectory(dUtilities)
|
|
|
|
add_library(dGame INTERFACE)
|
|
target_link_libraries(dGame INTERFACE
|
|
dGameBase dBehaviors dComponents dEntity dGameMessages dInventory dMission dPropertyBehaviors dUtilities dScripts
|
|
)
|