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

Method construct

radiantcore/entity/eclassmodel/EclassModelNode.cpp:44–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void EclassModelNode::construct()
45{
46 EntityNode::construct();
47
48 _rotation.setIdentity();
49
50 // Observe position and orientation spawnargs
51 static_assert(std::is_base_of<sigc::trackable, OriginKey>::value);
52 static_assert(std::is_base_of<sigc::trackable, RotationKey>::value);
53 observeKey("angle", sigc::mem_fun(_rotationKey, &RotationKey::angleChanged));
54 observeKey("rotation", sigc::mem_fun(_rotationKey, &RotationKey::rotationChanged));
55 observeKey("origin", sigc::mem_fun(_originKey, &OriginKey::onKeyValueChanged));
56 observeKey("noshadows_lit", sigc::mem_fun(this, &EclassModelNode::onNoshadowsLitChanged));
57}
58
59// Snappable implementation
60void EclassModelNode::snapto(float snap)

Callers 2

CreateMethod · 0.45
cloneMethod · 0.45

Calls 2

constructFunction · 0.85
setIdentityMethod · 0.45

Tested by

no test coverage detected