Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
EventMgr Struct Reference

#include <LuaEngine.h>

Collaboration diagram for EventMgr:

Classes

struct  LuaEvent

Public Types

typedef std::map< EventProcessor *, EventSetEventMap
typedef std::set< LuaEvent * > EventSet
typedef std::unordered_map< uint64, EventProcessorProcessorMap

Public Member Functions

int AddEvent (EventProcessor *events, int funcRef, uint32 delay, uint32 calls, Object *obj=NULL)
int AddEvent (uint64 guid, int funcRef, uint32 delay, uint32 calls, Object *obj=NULL)
LuaEventGetEvent (EventProcessor *events, int eventId)
void KillAllEvents (EventProcessor *events)
bool RemoveEvent (EventProcessor *events, int eventId)
void RemoveEvent (int eventId)
bool RemoveEvent (uint64 guid, int eventId)
void RemoveEvents ()
void RemoveEvents (EventProcessor *events)
void RemoveEvents (uint64 guid)
void Update (uint32 diff)

Public Attributes

EventProcessor GlobalEvents
EventMap LuaEvents
ProcessorMap Processors

Detailed Description

Definition at line 225 of file LuaEngine.h.

Member Typedef Documentation

◆ EventMap

Definition at line 230 of file LuaEngine.h.

◆ EventSet

typedef std::set<LuaEvent*> EventMgr::EventSet

Definition at line 229 of file LuaEngine.h.

◆ ProcessorMap

typedef std::unordered_map<uint64, EventProcessor> EventMgr::ProcessorMap

Definition at line 231 of file LuaEngine.h.

Member Function Documentation

◆ AddEvent() [1/2]

int EventMgr::AddEvent ( EventProcessor * events,
int funcRef,
uint32 delay,
uint32 calls,
Object * obj = NULL )
inline

Definition at line 316 of file LuaEngine.h.

References EventProcessor::AddEvent(), and EventProcessor::CalculateTime().

Referenced by AddEvent().

◆ AddEvent() [2/2]

int EventMgr::AddEvent ( uint64 guid,
int funcRef,
uint32 delay,
uint32 calls,
Object * obj = NULL )
inline

Definition at line 325 of file LuaEngine.h.

References AddEvent(), and Processors.

◆ GetEvent()

LuaEvent * EventMgr::GetEvent ( EventProcessor * events,
int eventId )
inline

Definition at line 333 of file LuaEngine.h.

References LuaEvents.

Referenced by RemoveEvent().

◆ KillAllEvents()

void EventMgr::KillAllEvents ( EventProcessor * events)
inline

Definition at line 275 of file LuaEngine.h.

References LuaEvents.

Referenced by RemoveEvents(), and RemoveEvents().

◆ RemoveEvent() [1/3]

bool EventMgr::RemoveEvent ( EventProcessor * events,
int eventId )
inline

Definition at line 348 of file LuaEngine.h.

References GetEvent(), and BasicEvent::to_Abort.

Referenced by RemoveEvent(), and RemoveEvent().

◆ RemoveEvent() [2/3]

void EventMgr::RemoveEvent ( int eventId)
inline

Definition at line 369 of file LuaEngine.h.

References LuaEvents, and RemoveEvent().

◆ RemoveEvent() [3/3]

bool EventMgr::RemoveEvent ( uint64 guid,
int eventId )
inline

Definition at line 361 of file LuaEngine.h.

References Processors, and RemoveEvent().

◆ RemoveEvents() [1/3]

void EventMgr::RemoveEvents ( )
inline

Definition at line 287 of file LuaEngine.h.

References KillAllEvents(), LuaEvents, and Processors.

◆ RemoveEvents() [2/3]

void EventMgr::RemoveEvents ( EventProcessor * events)
inline

Definition at line 298 of file LuaEngine.h.

References KillAllEvents(), and LuaEvents.

◆ RemoveEvents() [3/3]

void EventMgr::RemoveEvents ( uint64 guid)
inline

Definition at line 307 of file LuaEngine.h.

References Processors.

◆ Update()

void EventMgr::Update ( uint32 diff)
inline

Definition at line 256 of file LuaEngine.h.

References GlobalEvents, and Processors.

Member Data Documentation

◆ GlobalEvents

EventProcessor EventMgr::GlobalEvents

Definition at line 235 of file LuaEngine.h.

Referenced by Update().

◆ LuaEvents

EventMap EventMgr::LuaEvents

Definition at line 233 of file LuaEngine.h.

Referenced by GetEvent(), KillAllEvents(), RemoveEvent(), RemoveEvents(), and RemoveEvents().

◆ Processors

ProcessorMap EventMgr::Processors

Definition at line 234 of file LuaEngine.h.

Referenced by AddEvent(), RemoveEvent(), RemoveEvents(), RemoveEvents(), and Update().


The documentation for this struct was generated from the following file: