Skip to content

Commit

Permalink
Add a new failing test for attachment offset
Browse files Browse the repository at this point in the history
atdm:torch_brazier should have its flame at (0, 0, 10) based on the offset
value in the entityDef.
  • Loading branch information
Matthew Mott committed Jan 30, 2021
1 parent 2534e09 commit 5c98a88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Entity.cpp
Expand Up @@ -259,6 +259,11 @@ TEST_F(EntityTest, CreateAttachedLightEntity)
// Spawnargs should be parsed into a single attachment
auto attachments = getAttachments(torch);
EXPECT_EQ(attachments.size(), 1);

// Examine the properties of the single attachment
Entity::Attachment attachment = attachments.front();
EXPECT_EQ(attachment.eclass, "light_cageflame_small");
EXPECT_EQ(attachment.offset, Vector3(0, 0, 10));
}

}

0 comments on commit 5c98a88

Please sign in to comment.