MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / createStaticEntityWithModel

Function createStaticEntityWithModel

test/Skin.cpp:695–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695IEntityNodePtr createStaticEntityWithModel(const std::string& model)
696{
697 auto funcStaticClass = GlobalEntityClassManager().findClass("func_static");
698 auto entity = GlobalEntityModule().createEntity(funcStaticClass);
699 entity->getEntity().setKeyValue("model", model);
700 return entity;
701}
702
703SkinnedModel::Ptr getSkinnedModel(const IEntityNodePtr& entity)
704{

Calls 4

findClassMethod · 0.45
createEntityMethod · 0.45
setKeyValueMethod · 0.45
getEntityMethod · 0.45

Tested by

no test coverage detected