MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetFromDesc

Method SetFromDesc

Source/Objects/pathpointobject.cpp:126–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool PathPointObject::SetFromDesc(const EntityDescription& desc) {
127 bool ret = Object::SetFromDesc(desc);
128 if (ret) {
129 for (const auto& field : desc.fields) {
130 switch (field.type) {
131 case EDF_CONNECTIONS:
132 field.ReadIntVec(&connection_ids);
133 break;
134 }
135 }
136 }
137 return ret;
138}
139
140bool PathPointObject::Initialize() {
141 sp.ASAddFloat("Wait", 0.0f);

Callers

nothing calls this directly

Calls 1

ReadIntVecMethod · 0.80

Tested by

no test coverage detected