RigsofRods
Soft-body Physics Simulation
Macros
RigDef_Serializer.cpp File Reference
#include "RigDef_Serializer.h"
#include "Actor.h"
#include "RigDef_File.h"
#include <fstream>
#include <OgreStringConverter.h>
#include <iomanip>
+ Include dependency graph for RigDef_Serializer.cpp:

Go to the source code of this file.

Macros

#define PROP_ANIMATION_ADD_FLAG(FLAGS_VAR, AND_VAR, BITMASK_CONST, NAME_STR)
 
#define ANIMATOR_ADD_FLAG(DEF_VAR, AND_VAR, BITMASK_CONST, NAME_STR)
 
#define ANIMATOR_ADD_AERIAL_FLAG(DEF_VAR, AND_VAR, BITMASK_CONST, NAME_STR)
 
#define ANIMATOR_ADD_LIMIT(DEF_VAR, AND_VAR, BITMASK_CONST, NAME_STR, VALUE)
 

Detailed Description

Author
Petr Ohlidal
Date
10/2014

Definition in file RigDef_Serializer.cpp.

Macro Definition Documentation

◆ ANIMATOR_ADD_AERIAL_FLAG

#define ANIMATOR_ADD_AERIAL_FLAG (   DEF_VAR,
  AND_VAR,
  BITMASK_CONST,
  NAME_STR 
)
Value:
if (AND_VAR) { m_stream << " | "; } \
if (BITMASK_IS_1((DEF_VAR).aero_animator.flags, RigDef::AeroAnimator::BITMASK_CONST)) { \
AND_VAR = true; \
m_stream << NAME_STR << DEF_VAR.aero_animator.engine_idx + 1; \
}

Definition at line 1237 of file RigDef_Serializer.cpp.

◆ ANIMATOR_ADD_FLAG

#define ANIMATOR_ADD_FLAG (   DEF_VAR,
  AND_VAR,
  BITMASK_CONST,
  NAME_STR 
)
Value:
if (AND_VAR) { m_stream << " | "; } \
if (BITMASK_IS_1((DEF_VAR).flags, RigDef::Animator::BITMASK_CONST)) { \
AND_VAR = true; \
m_stream << NAME_STR; \
}

Definition at line 1230 of file RigDef_Serializer.cpp.

◆ ANIMATOR_ADD_LIMIT

#define ANIMATOR_ADD_LIMIT (   DEF_VAR,
  AND_VAR,
  BITMASK_CONST,
  NAME_STR,
  VALUE 
)
Value:
if (AND_VAR) { m_stream << " | "; } \
if (BITMASK_IS_1((DEF_VAR).aero_animator.flags, RigDef::Animator::BITMASK_CONST)) { \
AND_VAR = true; \
m_stream << NAME_STR << ": " << VALUE; \
}

Definition at line 1244 of file RigDef_Serializer.cpp.

◆ PROP_ANIMATION_ADD_FLAG

#define PROP_ANIMATION_ADD_FLAG (   FLAGS_VAR,
  AND_VAR,
  BITMASK_CONST,
  NAME_STR 
)
Value:
if (AND_VAR) { m_stream << " | "; } \
if (BITMASK_IS_1((FLAGS_VAR), RigDef::Animation::BITMASK_CONST)) { \
AND_VAR = true; \
m_stream << NAME_STR; \
}

Definition at line 529 of file RigDef_Serializer.cpp.

BITMASK_IS_1
#define BITMASK_IS_1(VAR, FLAGS)
Definition: BitFlags.h:14