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

Method GetBottomUpCompleteChildren

Source/Objects/movementobject.cpp:131–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void MovementObject::GetBottomUpCompleteChildren(std::vector<Object*>* ret_children) {
132 if (!env_object_attach_data.empty()) {
133 std::vector<AttachedEnvObject> attached_env_objects;
134 Deserialize(env_object_attach_data, attached_env_objects);
135 ret_children->reserve(attached_env_objects.size());
136 for (auto& attached_env_object : attached_env_objects) {
137 Object* obj = attached_env_object.direct_ptr;
138 if (obj) {
139 obj->GetBottomUpCompleteChildren(ret_children);
140 ret_children->push_back(attached_env_object.direct_ptr);
141 }
142 }
143 }
144}
145
146bool MovementObject::IsMultiplayerSupported() {
147 ASArglist arglist;

Callers

nothing calls this directly

Calls 5

DeserializeFunction · 0.85
emptyMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected