Add NPC entity to project document test
This commit is contained in:
@@ -189,6 +189,11 @@ describe("project document JSON", () => {
|
|||||||
const document = createEmptyProjectDocument({
|
const document = createEmptyProjectDocument({
|
||||||
name: "Legacy Smooth Path Project"
|
name: "Legacy Smooth Path Project"
|
||||||
});
|
});
|
||||||
|
const npc = createNpcEntity({
|
||||||
|
id: "entity-npc-guard",
|
||||||
|
actorId: "actor-guard"
|
||||||
|
});
|
||||||
|
document.scenes[document.activeSceneId]!.entities[npc.id] = npc;
|
||||||
document.sequences.sequences["sequence-patrol"] = createProjectSequence({
|
document.sequences.sequences["sequence-patrol"] = createProjectSequence({
|
||||||
id: "sequence-patrol",
|
id: "sequence-patrol",
|
||||||
title: "Patrol",
|
title: "Patrol",
|
||||||
|
|||||||
Reference in New Issue
Block a user