#include "AreaTriggerDataStore.h"
#include "AreaTriggerTemplate.h"
#include "DB2Stores.h"
#include "DatabaseEnv.h"
#include "Log.h"
#include "MapManager.h"
#include "MapUtils.h"
#include "ObjectMgr.h"
#include "QueryResultStructured.h"
#include "SpellMgr.h"
#include "Timer.h"
#include "Types.h"
#include <cmath>
Go to the source code of this file.
◆ VALIDATE_AND_SET_CURVE
| #define VALIDATE_AND_SET_CURVE |
( |
|
Curve, |
|
|
|
Value |
|
) |
| |
Value: createProperties.Curve = Value; \
if (createProperties.Curve && !
sCurveStore.HasRecord(createProperties.Curve)) \
{ \
TC_LOG_ERROR("sql.sql", "Table `areatrigger_create_properties` has listed AreaTrigger (Id: {}, IsCustom: {}) for AreaTriggerCreatePropertiesId (Id: {}, IsCustom: {}) with invalid " #Curve " ({}), set to 0!", \
areaTriggerId.Id,
uint32(areaTriggerId.IsCustom), createPropertiesId.Id,
uint32(createPropertiesId.IsCustom), createProperties.Curve); \
createProperties.Curve = 0; \
}
DB2Storage< CurveEntry > sCurveStore("Curve.db2", &CurveLoadInfo::Instance)
◆ VALIDATE_AND_SET_FLOAT
| #define VALIDATE_AND_SET_FLOAT |
( |
|
Float, |
|
|
|
Value |
|
) |
| |
Value: orbit.Float = Value; \
if (!std::isfinite(orbit.Float)) \
{ \
TC_LOG_ERROR(
"sql.sql",
"Table `areatrigger_create_properties_orbit` has listed areatrigger (AreaTriggerCreatePropertiesId: {}, IsCustom: {}) with invalid " #
Float " ({}), set to 0!", \
createPropertiesId.Id,
uint32(createPropertiesId.IsCustom), orbit.Float); \
orbit.Float = 0.0f; \
}