RigsofRods
Soft-body Physics Simulation
Macros
ActorSpawnerFlow.cpp File Reference
#include "ActorSpawner.h"
#include "Actor.h"
#include "CacheSystem.h"
#include "GfxScene.h"
#include "Renderdash.h"
+ Include dependency graph for ActorSpawnerFlow.cpp:

Go to the source code of this file.

Macros

#define PROCESS_ELEMENT(_KEYWORD_, _FIELD_, _FUNCTION_)
 

Macro Definition Documentation

◆ PROCESS_ELEMENT

#define PROCESS_ELEMENT (   _KEYWORD_,
  _FIELD_,
  _FUNCTION_ 
)
Value:
{ \
this->SetCurrentKeyword(_KEYWORD_); \
for (auto& m: m_selected_modules) \
{ \
m_current_module = m; \
for (auto& entry: m->_FIELD_) \
{ \
try { \
_FUNCTION_(entry); \
} \
catch (...) \
{ \
this->HandleException(); \
} \
} \
m_current_module.reset(); \
} \
this->SetCurrentKeyword(RigDef::Keyword::INVALID); \
}

Definition at line 38 of file ActorSpawnerFlow.cpp.

RigDef::Keyword::INVALID
@ INVALID