DarkflameServer/dGame
David Markowitz 3222e78815
Implement undo action for pre-built models (#830)
Brick building as of right now does not implement the undo action properly.  This commit addresses the issue with undoing button being non-functional server side and implements the GM needed for addressing further issues.

Implement GameMessage UnUseModel which is called when a model in BrickBuilding is UnUsed.  Important for UGC content down the line.  Final code has been tested as follows:
1. Placed a model in brick build
2. saved placed a brick
3. repeat 2 and 3 twice more for 6 total models
4. Place a new model in brick mode and then edit all 7 models into one brick model instance
5. Pressing undo returns the converted model to the inventory and properly discards the other 6 without crashing.  Intended live behavior is to store this in the inventory instead however behind the scenes work is needed to implement UGC models properly.

Implement enum

Implement the BlueprintSaveResponseType enum so there are less magic numbers sent via packets.
Correct int sizes from unsigned int to uint32_t

Add deserialize test

Add a test for de-serializing a GM that is sent to the client.  Assertions verify the data is in the correct order and has no extra information.
2022-11-27 16:48:46 -08:00
..
dBehaviors Add Remove Buff Behavior and patch infinite use Imagination Backpack(#845) 2022-11-27 16:40:14 -08:00
dComponents Implement undo action for pre-built models (#830) 2022-11-27 16:48:46 -08:00
dEntity format codebase 2022-07-28 08:39:57 -05:00
dGameMessages Implement undo action for pre-built models (#830) 2022-11-27 16:48:46 -08:00
dInventory Implement undo action for pre-built models (#830) 2022-11-27 16:48:46 -08:00
dMission Move enums to a single directory 2022-11-26 14:22:00 -08:00
dPropertyBehaviors Property Behavior deserialize definitions (#812) 2022-11-27 01:24:35 -08:00
dUtilities Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
Character.cpp Selective saving for map and location (#732) 2022-08-16 20:53:28 -05:00
Character.h Implement flying command (#713) 2022-08-06 01:19:34 -07:00
CMakeLists.txt Organize dScripts (#814) 2022-11-03 12:57:54 -05:00
Entity.cpp Fix Boogie Down (#854) 2022-11-27 04:03:30 -08:00
Entity.h format codebase 2022-07-28 08:39:57 -05:00
EntityManager.cpp format codebase 2022-07-28 08:39:57 -05:00
EntityManager.h format codebase 2022-07-28 08:39:57 -05:00
LeaderboardManager.cpp use UTF8ToUTF16 more (#695) 2022-08-02 08:56:20 -05:00
LeaderboardManager.h format codebase 2022-07-28 08:39:57 -05:00
Player.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
Player.h convert to unix line endings 2022-08-05 22:01:59 -05:00
TeamManager.cpp format codebase 2022-07-28 08:39:57 -05:00
TeamManager.h format codebase 2022-07-28 08:39:57 -05:00
TradingManager.cpp format codebase 2022-07-28 08:39:57 -05:00
TradingManager.h format codebase 2022-07-28 08:39:57 -05:00
User.cpp format codebase 2022-07-28 08:39:57 -05:00
User.h format codebase 2022-07-28 08:39:57 -05:00
UserManager.cpp Fix chat whitelist path in UserManager error log (#853) 2022-11-27 01:06:17 -08:00
UserManager.h format codebase 2022-07-28 08:39:57 -05:00