AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AllItemScript Class Reference

#include "AllItemScript.h"

Inheritance diagram for AllItemScript:
ScriptObject

Public Member Functions

virtual bool CanItemQuestAccept (Player *, Item *, Quest const *)
 
virtual bool CanItemUse (Player *, Item *, SpellCastTargets const &)
 
virtual bool CanItemRemove (Player *, Item *)
 
virtual bool CanItemExpire (Player *, ItemTemplate const *)
 
virtual void OnItemGossipSelect (Player *, Item *, uint32, uint32)
 
virtual void OnItemGossipSelectCode (Player *, Item *, uint32, uint32, const char *)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 AllItemScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ AllItemScript()

AllItemScript::AllItemScript ( const char *  name)
protected
145 :
146 ScriptObject(name)
147{
149}
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ CanItemExpire()

virtual bool AllItemScript::CanItemExpire ( Player ,
ItemTemplate const *   
)
inlinevirtual
39{ return true; }

Referenced by ScriptMgr::OnItemExpire().

◆ CanItemQuestAccept()

virtual bool AllItemScript::CanItemQuestAccept ( Player ,
Item ,
Quest const *   
)
inlinevirtual
30{ return true; }

Referenced by ScriptMgr::OnQuestAccept().

◆ CanItemRemove()

virtual bool AllItemScript::CanItemRemove ( Player ,
Item  
)
inlinevirtual
36{ return true; }

Referenced by ScriptMgr::OnItemRemove().

◆ CanItemUse()

virtual bool AllItemScript::CanItemUse ( Player ,
Item ,
SpellCastTargets const &   
)
inlinevirtual
33{ return false; }

Referenced by ScriptMgr::OnItemUse().

◆ OnItemGossipSelect()

virtual void AllItemScript::OnItemGossipSelect ( Player ,
Item ,
uint32  ,
uint32   
)
inlinevirtual
42{ }

Referenced by ScriptMgr::OnGossipSelect().

◆ OnItemGossipSelectCode()

virtual void AllItemScript::OnItemGossipSelectCode ( Player ,
Item ,
uint32  ,
uint32  ,
const char *   
)
inlinevirtual
45{ }

Referenced by ScriptMgr::OnGossipSelectCode().