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

Method ReceiveObjectMessageVAList

Source/Objects/group.cpp:330–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328}
329
330void Group::ReceiveObjectMessageVAList(OBJECT_MSG::Type type, va_list args) {
331 switch (type) {
332 case OBJECT_MSG::SET_COLOR: {
333 vec3 temp = *va_arg(args, vec3*);
334
335 std::vector<Child>::iterator cit = children.begin();
336 for (; cit != children.end(); cit++) {
337 cit->direct_ptr->ReceiveObjectMessage(OBJECT_MSG::SET_COLOR, &temp);
338 }
339
340 break;
341 }
342 default:
343 Object::ReceiveObjectMessageVAList(type, args);
344 break;
345 }
346}
347
348void Group::RemapReferences(std::map<int, int> id_map) {
349 for (auto& i : children) {

Callers 1

Calls 3

beginMethod · 0.45
endMethod · 0.45
ReceiveObjectMessageMethod · 0.45

Tested by

no test coverage detected