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

Method ReceiveObjectMessageVAList

Source/Objects/object.cpp:320–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void Object::ReceiveObjectMessageVAList(OBJECT_MSG::Type type, va_list args) {
321 switch (type) {
322 case OBJECT_MSG::TOGGLE_IMPOSTER:
323 ToggleImposter();
324 break;
325 case OBJECT_MSG::RESET:
326 Reset();
327 break;
328 case OBJECT_MSG::RELOAD:
329 Reload();
330 break;
331 case OBJECT_MSG::FINALIZE_LOADED_CONNECTIONS:
332 FinalizeLoadedConnections();
333 break;
334 case OBJECT_MSG::DRAW:
335 Draw();
336 break;
337 case OBJECT_MSG::UPDATE:
338 Update((float)va_arg(args, double));
339 walltime_last_update = game_timer.GetWallTime();
340 break;
341 case OBJECT_MSG::INFREQUENT_UPDATE:
342 InfrequentUpdate();
343 break;
344 default:
345 break;
346 }
347}
348
349void Object::ReceiveScriptMessage(const std::string &msg) {
350 receive_depth++;

Callers

nothing calls this directly

Calls 3

GetWallTimeMethod · 0.80
ResetFunction · 0.50
DrawFunction · 0.50

Tested by

no test coverage detected