2015-01-20 23:18:40 +00:00
|
|
|
#define COMPONENT weather
|
2016-06-20 09:41:17 +00:00
|
|
|
#define COMPONENT_BEAUTIFIED Weather
|
2015-01-20 23:18:40 +00:00
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
2016-01-05 07:39:29 +00:00
|
|
|
|
|
|
|
// #define DEBUG_MODE_FULL
|
2016-01-29 05:26:02 +00:00
|
|
|
// #define DISABLE_COMPILE_CACHE
|
|
|
|
// #define CBA_DEBUG_SYNCHRONOUS
|
2016-01-05 07:39:29 +00:00
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
|
2015-01-20 23:18:40 +00:00
|
|
|
#ifdef DEBUG_ENABLED_WEATHER
|
2015-04-06 16:22:43 +00:00
|
|
|
#define DEBUG_MODE_FULL
|
2015-01-20 23:18:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_WEATHER
|
2015-04-06 16:22:43 +00:00
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_WEATHER
|
2015-01-20 23:18:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2015-04-20 11:54:22 +00:00
|
|
|
|
|
|
|
#define ABSOLUTE_ZERO_IN_CELSIUS -273.15
|
|
|
|
#define KELVIN(t) (t - ABSOLUTE_ZERO_IN_CELSIUS)
|
|
|
|
#define CELSIUS(t) (t + ABSOLUTE_ZERO_IN_CELSIUS)
|
|
|
|
#define UNIVERSAL_GAS_CONSTANT 8.314
|
|
|
|
#define WATER_VAPOR_MOLAR_MASS 0.018016
|
|
|
|
#define DRY_AIR_MOLAR_MASS 0.028964
|
|
|
|
#define SPECIFIC_GAS_CONSTANT_DRY_AIR 287.058
|
2015-05-16 19:10:34 +00:00
|
|
|
#define TO_CELSIUS(t) ((t - 32) / 1.8)
|
|
|
|
#define TO_FAHRENHEIT(t) (t * 1.8 + 32)
|