aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Examples
diff options
context:
space:
mode:
authorQAston <none@none>2010-10-08 22:33:21 +0200
committerQAston <none@none>2010-10-08 22:33:21 +0200
commitf8a43127011853a7d20f88943e0aa14366cc1ac9 (patch)
treee44d07c215860f53c9c8f3084854cbeb833e611e /src/server/scripts/Examples
parentce712adda2c14926bdba34afa14be452a271cd66 (diff)
Core/ScriptSystem: Add compile time type check of function assigned to hooks -
prevents incorrect function calls. Since this rev you have to put PrepareAuraScript(<yourscriptclassnamehere>) at the beginning of every aura script. --HG-- branch : trunk
Diffstat (limited to 'src/server/scripts/Examples')
-rw-r--r--src/server/scripts/Examples/example_spell.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/scripts/Examples/example_spell.cpp b/src/server/scripts/Examples/example_spell.cpp
index 5397cd161d8..695cf65c6c7 100644
--- a/src/server/scripts/Examples/example_spell.cpp
+++ b/src/server/scripts/Examples/example_spell.cpp
@@ -135,6 +135,7 @@ class spell_ex_66244 : public SpellScriptLoader
class spell_ex_66244AuraScript : public AuraScript
{
+ PrepareAuraScript(spell_ex_66244AuraScript)
enum Spells
{
SPELL_TRIGGERED = 18282
@@ -297,6 +298,7 @@ class spell_ex : public SpellScriptLoader
class spell_ex_AuraScript : public AuraScript
{
+ PrepareAuraScript(spell_ex)
//bool Validate(SpellEntry const * spellEntry){return true;}
//bool Load(){return true;}
//void Unload(){}