AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ElunaScript Class Reference

#include "ElunaScript.h"

Inheritance diagram for ElunaScript:
ScriptObject

Public Member Functions

virtual void OnWeatherChange (Weather *, WeatherState, float)
 This hook called when the weather changes in the zone this script is associated with. More...
 
virtual bool CanAreaTrigger (Player *, AreaTrigger const *)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 ElunaScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ ElunaScript()

ElunaScript::ElunaScript ( const char *  name)
protected
21 : ScriptObject(name)
22{
24}
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:735
Definition: ScriptObject.h:43

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ CanAreaTrigger()

virtual bool ElunaScript::CanAreaTrigger ( Player ,
AreaTrigger const *   
)
inlinevirtual
39{ return false; }

◆ OnWeatherChange()

virtual void ElunaScript::OnWeatherChange ( Weather ,
WeatherState  ,
float   
)
inlinevirtual

This hook called when the weather changes in the zone this script is associated with.

Parameters
weatherContains information about the Weather
stateContains information about the WeatherState
gradeContains information about the grade
36{ }

Referenced by ScriptMgr::OnWeatherChange().