#include "AreaTriggerDataStore.h"
#include "AreaTrigger.h"
#include "AreaTriggerTemplate.h"
#include "Containers.h"
#include "DatabaseEnv.h"
#include "DB2Stores.h"
#include "Log.h"
#include "MapManager.h"
#include "ObjectMgr.h"
#include "SpellMgr.h"
#include "Timer.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.LookupEntry(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: createProperties->OrbitInfo->Float = Value; \
if (!std::isfinite(createProperties->OrbitInfo->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), createProperties->OrbitInfo->Float); \
createProperties->OrbitInfo->Float = 0.0f; \
}