Update serialization test to use brush targeting instead of sound emitter targeting
This commit is contained in:
@@ -2667,21 +2667,20 @@ describe("scene document JSON", () => {
|
|||||||
id: "entity-npc-silent",
|
id: "entity-npc-silent",
|
||||||
actorId: "actor-silent"
|
actorId: "actor-silent"
|
||||||
});
|
});
|
||||||
const soundEmitter = createSoundEmitterEntity({
|
const targetBrush = createBoxBrush({
|
||||||
id: "entity-sound-chime",
|
id: "brush-npc-targeting-door"
|
||||||
audioAssetId: "asset-audio-chime"
|
|
||||||
});
|
});
|
||||||
const document = createEmptySceneDocument({
|
const document = createEmptySceneDocument({
|
||||||
name: "Legacy NPC Targeting Scene"
|
name: "Legacy NPC Targeting Scene"
|
||||||
});
|
});
|
||||||
|
document.brushes[targetBrush.id] = targetBrush;
|
||||||
document.entities[linkedNpc.id] = linkedNpc;
|
document.entities[linkedNpc.id] = linkedNpc;
|
||||||
document.entities[silentNpc.id] = silentNpc;
|
document.entities[silentNpc.id] = silentNpc;
|
||||||
document.entities[soundEmitter.id] = soundEmitter;
|
document.interactionLinks["link-npc-toggle"] = createToggleVisibilityInteractionLink({
|
||||||
document.interactionLinks["link-npc-sound"] = createPlaySoundInteractionLink({
|
id: "link-npc-toggle",
|
||||||
id: "link-npc-sound",
|
|
||||||
sourceEntityId: linkedNpc.id,
|
sourceEntityId: linkedNpc.id,
|
||||||
trigger: "click",
|
trigger: "click",
|
||||||
targetSoundEmitterId: soundEmitter.id
|
targetBrushId: targetBrush.id
|
||||||
});
|
});
|
||||||
|
|
||||||
const legacyDocument = JSON.parse(
|
const legacyDocument = JSON.parse(
|
||||||
|
|||||||
Reference in New Issue
Block a user