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

#include "TransportScript.h"

Inheritance diagram for TransportScript:
ScriptObject UpdatableScript< Transport >

Public Member Functions

bool IsDatabaseBound () const override
 
virtual void OnAddPassenger (Transport *, Player *)
 
virtual void OnAddCreaturePassenger (Transport *, Creature *)
 
virtual void OnRemovePassenger (Transport *, Player *)
 
virtual void OnRelocate (Transport *, uint32, uint32, float, float, float)
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 
- Public Member Functions inherited from UpdatableScript< Transport >
virtual void OnUpdate (Transport *, uint32)
 

Protected Member Functions

 TransportScript (const char *name)
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 
- Protected Member Functions inherited from UpdatableScript< Transport >
 UpdatableScript ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ TransportScript()

TransportScript::TransportScript ( const char *  name)
protected
74 : ScriptObject(name)
75{
77}
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44

References ScriptRegistry< TScript >::AddScript().

Member Function Documentation

◆ IsDatabaseBound()

bool TransportScript::IsDatabaseBound ( ) const
inlineoverridevirtual

Reimplemented from ScriptObject.

29{ return true; }

◆ OnAddCreaturePassenger()

virtual void TransportScript::OnAddCreaturePassenger ( Transport ,
Creature  
)
inlinevirtual
35{ }

◆ OnAddPassenger()

virtual void TransportScript::OnAddPassenger ( Transport ,
Player  
)
inlinevirtual
32{ }

◆ OnRelocate()

virtual void TransportScript::OnRelocate ( Transport ,
uint32  ,
uint32  ,
float  ,
float  ,
float   
)
inlinevirtual
41{ }

◆ OnRemovePassenger()

virtual void TransportScript::OnRemovePassenger ( Transport ,
Player  
)
inlinevirtual
38{ }