MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / EventHandler

Method EventHandler

src/world/Event/EventHandler.cpp:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "EventHandler.h"
2
3Sapphire::Event::EventHandler::EventHandler( uint64_t actorId, uint32_t eventId,
4 EventType eventType, uint32_t eventParam ) :
5 m_actorId( actorId ),
6 m_eventId( eventId ),
7 m_eventType( eventType ),
8 m_playedScene( false )
9{
10 m_entryId = static_cast< uint16_t >( eventId );
11 m_type = static_cast< uint16_t >( eventId >> 16 );
12 m_eventParam = eventParam;
13 m_returnCallback = nullptr;
14}
15
16uint64_t Sapphire::Event::EventHandler::getActorId() const
17{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected