mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 23:26:23 +00:00
Core\Packet\Misc: Weather (#9648)
This commit is contained in:
committed by
GitHub
parent
e7a7c20c32
commit
fb249836e9
@@ -60,6 +60,8 @@ class StaticTransport;
|
||||
class MotionTransport;
|
||||
class PathGenerator;
|
||||
|
||||
enum WeatherState : uint32;
|
||||
|
||||
namespace Acore
|
||||
{
|
||||
struct ObjectUpdater;
|
||||
@@ -271,13 +273,13 @@ enum LevelRequirementVsMode
|
||||
|
||||
struct ZoneDynamicInfo
|
||||
{
|
||||
ZoneDynamicInfo() { }
|
||||
ZoneDynamicInfo();
|
||||
|
||||
uint32 MusicId{0};
|
||||
uint32 WeatherId{0};
|
||||
float WeatherGrade{0.0f};
|
||||
uint32 OverrideLightId{0};
|
||||
uint32 LightFadeInTime{0};
|
||||
uint32 MusicId;
|
||||
WeatherState WeatherId;
|
||||
float WeatherGrade;
|
||||
uint32 OverrideLightId;
|
||||
uint32 LightFadeInTime;
|
||||
};
|
||||
|
||||
#if defined(__GNUC__)
|
||||
@@ -597,7 +599,7 @@ public:
|
||||
|
||||
void PlayDirectSoundToMap(uint32 soundId, uint32 zoneId = 0);
|
||||
void SetZoneMusic(uint32 zoneId, uint32 musicId);
|
||||
void SetZoneWeather(uint32 zoneId, uint32 weatherId, float weatherGrade);
|
||||
void SetZoneWeather(uint32 zoneId, WeatherState weatherId, float weatherGrade);
|
||||
void SetZoneOverrideLight(uint32 zoneId, uint32 lightId, Milliseconds fadeInTime);
|
||||
|
||||
// Checks encounter state at kill/spellcast, originally in InstanceScript however not every map has instance script :(
|
||||
|
||||
Reference in New Issue
Block a user