Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
EventManagerTest Class Reference
+ Inheritance diagram for EventManagerTest:
+ Collaboration diagram for EventManagerTest:

Public Member Functions

u64 getTestValue () const
 
void resetValue ()
 
- Public Member Functions inherited from EventManager
 ~EventManager () override=default
 
void put (MtEvent *e) override
 
void reg (MtEvent::Type type, event_receive_func f, void *data) override
 
void dereg (MtEvent::Type type, event_receive_func f, void *data) override
 
- Public Member Functions inherited from MtEventManager
virtual ~MtEventManager ()=default
 

Static Public Member Functions

static void eventTest (MtEvent *e, void *data)
 

Private Attributes

u64 m_test_value = 0
 

Member Function Documentation

◆ eventTest()

static void EventManagerTest::eventTest ( MtEvent * e,
void * data )
inlinestatic

References MtEvent::getType(), m_test_value, MtEvent::TYPE_MAX, and UASSERT.

Referenced by TestEventManager::testRealEvent(), and TestEventManager::testRealEventAfterDereg().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTestValue()

u64 EventManagerTest::getTestValue ( ) const
inline

References m_test_value.

◆ resetValue()

void EventManagerTest::resetValue ( )
inline

References m_test_value.

Member Data Documentation

◆ m_test_value

u64 EventManagerTest::m_test_value = 0
private

Referenced by eventTest(), getTestValue(), and resetValue().


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