mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-06-23 13:19:56 +00:00

* Move in all directions is functional * feat: add movement behaviors the following behaviors will function MoveRight MoveLeft FlyUp FlyDown MoveForward MoveBackward The behavior of the behaviors is once a move in an axis is active, that behavior must finish its movement before another one on that axis can do another movement on it. * feat: add chat behaviors Tested that models can correctly send chat messages, silently and publically. Tested as well that the filter is used by the client for behaviors and added a security check to not broadcast messages that fail the check if words are removed.
28 lines
1.0 KiB
CMake
28 lines
1.0 KiB
CMake
set(DGAME_DPROPERTYBEHAVIORS_SOURCES
|
|
"PropertyBehavior.cpp"
|
|
"State.cpp"
|
|
"Strip.cpp"
|
|
"BlockDefinition.cpp"
|
|
"ControlBehaviors.cpp"
|
|
)
|
|
|
|
add_subdirectory(ControlBehaviorMessages)
|
|
|
|
foreach(file ${DGAME_DPROPERTYBEHAVIORS_CONTROLBEHAVIORMESSAGES})
|
|
set(DGAME_DPROPERTYBEHAVIORS_SOURCES ${DGAME_DPROPERTYBEHAVIORS_SOURCES} "ControlBehaviorMessages/${file}")
|
|
endforeach()
|
|
|
|
add_library(dPropertyBehaviors OBJECT ${DGAME_DPROPERTYBEHAVIORS_SOURCES})
|
|
target_link_libraries(dPropertyBehaviors PRIVATE dDatabaseCDClient)
|
|
target_include_directories(dPropertyBehaviors PUBLIC "." "ControlBehaviorMessages"
|
|
PRIVATE
|
|
"${PROJECT_SOURCE_DIR}/dCommon/dClient" # ControlBehaviors.cpp uses AssetManager
|
|
"${PROJECT_SOURCE_DIR}/dGame/dUtilities" # ObjectIdManager.h
|
|
"${PROJECT_SOURCE_DIR}/dGame/dGameMessages" # GameMessages.h
|
|
"${PROJECT_SOURCE_DIR}/dGame/dComponents" # ModelComponent.h
|
|
"${PROJECT_SOURCE_DIR}/dChatFilter" # dChatFilter.h
|
|
)
|
|
target_precompile_headers(dPropertyBehaviors REUSE_FROM dGameBase)
|
|
|
|
target_link_libraries(dPropertyBehaviors INTERFACE dComponents)
|