From f8a43127011853a7d20f88943e0aa14366cc1ac9 Mon Sep 17 00:00:00 2001 From: QAston Date: Fri, 8 Oct 2010 22:33:21 +0200 Subject: Core/ScriptSystem: Add compile time type check of function assigned to hooks - prevents incorrect function calls. Since this rev you have to put PrepareAuraScript() at the beginning of every aura script. --HG-- branch : trunk --- src/server/scripts/Examples/example_spell.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/scripts/Examples') 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(){} -- cgit v1.2.3