AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
LootScript Class Reference

#include "ScriptMgr.h"

Inheritance diagram for LootScript:
ScriptObject

Public Member Functions

bool IsDatabaseBound () const override
 
virtual void OnLootMoney (Player *, uint32)
 This hook called before money loot. More...
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 

Protected Member Functions

 LootScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ LootScript()

LootScript::LootScript ( const char *  name)
protected
579 : ScriptObject(name)
580{
582}
Definition: ScriptMgr.h:107
static void AddScript(TScript *const script)
Definition: ScriptMgr.h:2708

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ IsDatabaseBound()

bool LootScript::IsDatabaseBound ( ) const
inlineoverridevirtual

Reimplemented from ScriptObject.

2000{ return false; }

◆ OnLootMoney()

virtual void LootScript::OnLootMoney ( Player ,
uint32   
)
inlinevirtual

This hook called before money loot.

Parameters
playerContains information about the Player
goldContains information about money
2008{ }

Referenced by ScriptMgr::OnLootMoney().