Core: Add loginFirst param to OnLogin hook to allow doing things on first login only

whitespacefix

Fix warning about unused param
This commit is contained in:
Rochet2 committed 2014-06-21 17:40:56 +03:00
1 parent 8ddf289e2f
commit 7240fafe94
5 files changed
+10 -8

No files matched your search

+2 -2
View File
@@ -744,7 +744,7 @@ class PlayerScript : public UnitScript
virtual void OnSpellCast(Player* /*player*/, Spell* /*spell*/, bool /*skipCheck*/) { }
// Called when a player logs in.
virtual void OnLogin(Player* /*player*/) { }
virtual void OnLogin(Player* /*player*/, bool /*firstLogin*/) { }
// Called when a player logs out.
virtual void OnLogout(Player* /*player*/) { }
@@ -1034,7 +1034,7 @@ class ScriptMgr
void OnPlayerEmote(Player* player, uint32 emote);
void OnPlayerTextEmote(Player* player, uint32 textEmote, uint32 emoteNum, uint64 guid);
void OnPlayerSpellCast(Player* player, Spell* spell, bool skipCheck);
void OnPlayerLogin(Player* player);
void OnPlayerLogin(Player* player, bool firstLogin);
void OnPlayerLogout(Player* player);
void OnPlayerCreate(Player* player);
void OnPlayerDelete(uint64 guid);