Showing the changes to assignment-client/src/scripts/EntityScriptServer.cpp (1 of 1 file). Show all
Unified · Split
| @@ -24,10 +24,9 @@ · 23 unmodified lines | ||
| 24 | 24 | #include <ScriptCache.h> |
| 25 | 25 | #include <ScriptEngines.h> |
| 26 | 26 | #include <SoundCache.h> |
| 27 | +#include <UUID.h> | |
| 27 | 28 | #include <WebSocketServerClass.h> |
| 28 | 29 | |
| 29 | −const size_t UUID_LENGTH_BYTES = 16; | |
| 30 | − | |
| 31 | 30 | int EntityScriptServer::_entitiesScriptEngineCount = 0; |
| 32 | 31 | |
| 33 | 32 | EntityScriptServer::EntityScriptServer(ReceivedMessage& message) : ThreadedAssignment(message) { |
| @@ -63,7 +62,7 @@ EntityScriptServer::EntityScriptServer(ReceivedMessage& message) : ThreadedAssig · 29 unmodified lines | ||
| 63 | 62 | static const QString ENTITY_SCRIPT_SERVER_LOGGING_NAME = "entity-script-server"; |
| 64 | 63 | |
| 65 | 64 | void EntityScriptServer::handleReloadEntityServerScriptPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer senderNode) { |
| 66 | − auto entityID = QUuid::fromRfc4122(message->read(UUID_LENGTH_BYTES)); | |
| 65 | + auto entityID = QUuid::fromRfc4122(message->read(NUM_BYTES_RFC4122_UUID)); | |
| 67 | 66 | |
| 68 | 67 | if (_entityViewer.getTree() && !_shuttingDown) { |
| 69 | 68 | qDebug() << "Reloading: " << entityID; |