diff options
| author | QAston <none@none> | 2010-07-25 02:05:12 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2010-07-25 02:05:12 +0200 |
| commit | 7308c112bbda58d1740b9493cc444ad8ce8fd18e (patch) | |
| tree | 06d922581f7944043788fbbcee007c4c40fb98a6 /src/server/scripts/Examples | |
| parent | 2bee687fdd4e41633fd8cb2d03589de0a6616276 (diff) | |
*Add some more comments to SpellScript methods
*Remove forgotten error log
--HG--
branch : trunk
Diffstat (limited to 'src/server/scripts/Examples')
| -rw-r--r-- | src/server/scripts/Examples/example_spell.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/server/scripts/Examples/example_spell.cpp b/src/server/scripts/Examples/example_spell.cpp index 149cd09d4c9..90655127aa9 100644 --- a/src/server/scripts/Examples/example_spell.cpp +++ b/src/server/scripts/Examples/example_spell.cpp @@ -26,10 +26,9 @@ class spell_ex_49375SpellScript : public SpellScript { -public: std::string localVariable; char * localVariable2; -private: + // effect handler hook - effIndex - effIndex of handled effect of a spell void HandleDummy(SpellEffIndex effIndex) { @@ -87,6 +86,25 @@ SpellScript * GetSpellScript_spell_ex_49375() return new spell_ex_49375SpellScript(); } +/* empty script for copypasting +class spell_ex_SpellScript : public SpellScript +{ + void Function(SpellEffIndex effIndex){} + void Register() + { + //EffectHandlers += EffectHandlerFn(spell_ex_SpellScript::Function, EFFECT_ANY, SPELL_EFFECT_ANY); + } + + //bool Load(){return true} + //void Unload(){} + //bool Validate(SpellEntry const * spellEntry){return true;} +}; +SpellScript * GetSpellScript_spell_ex_() +{ + return new spell_ex_SpellScript(); +} +*/ + // this function has to be added to function set in ScriptLoader.cpp void AddSC_example_spell_scripts() { |
