DarkflameServer/dCommon
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
..
dClient 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
dEnums Implement undo action for pre-built models (#830) 2022-11-27 16:48:46 -08:00
AMFDeserialize.cpp format codebase 2022-07-28 08:39:57 -05:00
AMFDeserialize.h format codebase 2022-07-28 08:39:57 -05:00
AMFFormat_BitStream.cpp format codebase 2022-07-28 08:39:57 -05:00
AMFFormat_BitStream.h format codebase 2022-07-28 08:39:57 -05:00
AMFFormat.cpp Change AMFArray getters to use Templates and fix CI halting when one matrix fails (#796) 2022-10-30 13:06:05 -07:00
AMFFormat.h Change AMFArray getters to use Templates and fix CI halting when one matrix fails (#796) 2022-10-30 13:06:05 -07:00
BinaryIO.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryIO.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryPathFinder.cpp 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
BinaryPathFinder.h 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
BrickByBrickFix.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BrickByBrickFix.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
CMakeLists.txt 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
dConfig.cpp 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
dConfig.h format codebase 2022-07-28 08:39:57 -05:00
Diagnostics.cpp Improve Diagnostics logging (#841) 2022-11-27 13:47:14 -08:00
Diagnostics.h format codebase 2022-07-28 08:39:57 -05:00
dLogger.cpp Replace the vsprintf used in the logger with vsnprintf. (#694) 2022-08-01 15:23:01 -05:00
dLogger.h format codebase 2022-07-28 08:39:57 -05:00
eBlueprintSaveResponseType.h Implement undo action for pre-built models (#830) 2022-11-27 16:48:46 -08:00
Game.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
GeneralUtils.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
GeneralUtils.h format codebase 2022-07-28 08:39:57 -05:00
LDFFormat.cpp use UTF8ToUTF16 more (#695) 2022-08-02 08:56:20 -05:00
LDFFormat.h format codebase 2022-07-28 08:39:57 -05:00
MD5.cpp format codebase 2022-07-28 08:39:57 -05:00
MD5.h format codebase 2022-07-28 08:39:57 -05:00
Metrics.cpp format codebase 2022-07-28 08:39:57 -05:00
Metrics.hpp format codebase 2022-07-28 08:39:57 -05:00
NiPoint3.cpp format codebase 2022-07-28 08:39:57 -05:00
NiPoint3.h format codebase 2022-07-28 08:39:57 -05:00
NiQuaternion.cpp format codebase 2022-07-28 08:39:57 -05:00
NiQuaternion.h format codebase 2022-07-28 08:39:57 -05:00
PermissionMap.h format codebase 2022-07-28 08:39:57 -05:00
SHA512.cpp format codebase 2022-07-28 08:39:57 -05:00
SHA512.h format codebase 2022-07-28 08:39:57 -05:00
Type.cpp format codebase 2022-07-28 08:39:57 -05:00
Type.h format codebase 2022-07-28 08:39:57 -05:00
ZCompression.cpp Add ZLIB for Windows (#768) 2022-09-05 20:28:47 -07:00
ZCompression.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00