Showing the changes to libraries/entities/src/EntityScriptingInterface.cpp (1 of 39 files). Show all
Unified · Split
| @@ -93,7 +93,7 @@ QUuid EntityScriptingInterface::addEntity(const EntityItemProperties& properties · 92 unmodified lines | ||
| 93 | 93 | |
| 94 | 94 | // queue the packet |
| 95 | 95 | if (success) { |
| 96 | − queueEntityMessage(PacketTypeEntityAdd, id, propertiesWithSimID); | |
| 96 | + queueEntityMessage(PacketType::EntityAdd, id, propertiesWithSimID); | |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | return id; |
| @@ -175,13 +175,13 @@ QUuid EntityScriptingInterface::editEntity(QUuid id, EntityItemProperties proper · 75 unmodified lines | ||
| 175 | 175 | entity->setLastBroadcast(usecTimestampNow()); |
| 176 | 176 | } |
| 177 | 177 | _entityTree->unlock(); |
| 178 | − queueEntityMessage(PacketTypeEntityEdit, entityID, properties); | |
| 178 | + queueEntityMessage(PacketType::EntityEdit, entityID, properties); | |
| 179 | 179 | return id; |
| 180 | 180 | } |
| 181 | 181 | return QUuid(); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | − queueEntityMessage(PacketTypeEntityEdit, entityID, properties); | |
| 184 | + queueEntityMessage(PacketType::EntityEdit, entityID, properties); | |
| 185 | 185 | return id; |
| 186 | 186 | } |
| 187 | 187 | |
| @@ -446,7 +446,7 @@ bool EntityScriptingInterface::setVoxels(QUuid entityID, · 258 unmodified lines | ||
| 446 | 446 | properties.setVoxelDataDirty(); |
| 447 | 447 | properties.setLastEdited(now); |
| 448 | 448 | |
| 449 | − queueEntityMessage(PacketTypeEntityEdit, entityID, properties); | |
| 449 | + queueEntityMessage(PacketType::EntityEdit, entityID, properties); | |
| 450 | 450 | return true; |
| 451 | 451 | } |
| 452 | 452 | |
| @@ -483,7 +483,7 @@ bool EntityScriptingInterface::setPoints(QUuid entityID, std::function<bool(Line · 30 unmodified lines | ||
| 483 | 483 | properties.setLastEdited(now); |
| 484 | 484 | |
| 485 | 485 | |
| 486 | − queueEntityMessage(PacketTypeEntityEdit, entityID, properties); | |
| 486 | + queueEntityMessage(PacketType::EntityEdit, entityID, properties); | |
| 487 | 487 | return success; |
| 488 | 488 | } |
| 489 | 489 | |
| @@ -552,7 +552,7 @@ bool EntityScriptingInterface::actionWorker(const QUuid& entityID, · 62 unmodified lines | ||
| 552 | 552 | properties.setActionDataDirty(); |
| 553 | 553 | auto now = usecTimestampNow(); |
| 554 | 554 | properties.setLastEdited(now); |
| 555 | − queueEntityMessage(PacketTypeEntityEdit, entityID, properties); | |
| 555 | + queueEntityMessage(PacketType::EntityEdit, entityID, properties); | |
| 556 | 556 | |
| 557 | 557 | return success; |
| 558 | 558 | } |