mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 02:05:28 +00:00
A trade used the LOT and the count from the offer as the player sent it. The offer is now resolved when it arrives and again when the trade completes: the LOT comes from the held item, the count stops at the held count, and an offer that names an unknown item, the same item twice or a count of 0 is refused. The other player only receives an item that was taken from the offering player. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
36 lines
1.1 KiB
CMake
36 lines
1.1 KiB
CMake
SET(DGAMEMESSAGES_TESTS
|
|
"ActivityMessagesTests.cpp"
|
|
"BuildingMessagesTests.cpp"
|
|
"CombatMessagesTests.cpp"
|
|
"GameMessageTests.cpp"
|
|
"GameMsgSplitTests.cpp"
|
|
"EffectsMessagesTests.cpp"
|
|
"InventoryMessagesTests.cpp"
|
|
"MissionMessagesTests.cpp"
|
|
"PetMessagesTests.cpp"
|
|
"PropertyMessagesTests.cpp"
|
|
"RacingMessagesTests.cpp"
|
|
"RemainingMessagesTests.cpp"
|
|
"SkillMessagesTests.cpp"
|
|
"UnSmashTests.cpp"
|
|
"VendorMessagesTests.cpp"
|
|
"LegacyGameMessageTests.cpp"
|
|
"GameMessageDecoderTests.cpp"
|
|
"HotPropertyMessageTests.cpp"
|
|
"ClientMessagesTests.cpp"
|
|
"LoadSequenceTests.cpp"
|
|
"ChatRoutingTests.cpp"
|
|
"TradeOfferTests.cpp")
|
|
|
|
# Get the folder name and prepend it to the files above
|
|
get_filename_component(thisFolderName ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
|
list(TRANSFORM DGAMEMESSAGES_TESTS PREPEND "${thisFolderName}/")
|
|
|
|
# Copy test files to testing directory
|
|
add_subdirectory(TestBitStreams)
|
|
list(TRANSFORM GAMEMESSAGE_TESTBITSTREAMS PREPEND "${thisFolderName}/")
|
|
set(GAMEMESSAGE_TESTBITSTREAMS ${GAMEMESSAGE_TESTBITSTREAMS} PARENT_SCOPE)
|
|
|
|
# Export to parent scope
|
|
set(DGAMEMESSAGES_TESTS ${DGAMEMESSAGES_TESTS} PARENT_SCOPE)
|