Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
IEvent< T > Class Template Reference

Event interface. More...

#include <event.h>

Static Public Member Functions

static void loadLua (lua_State *state)
 Loads the event to the lua state.
 

Detailed Description

template<class T>
class IEvent< T >

Event interface.

All events should implement this event interface. Code will not compile otherwise.

Template Parameters
Tthe event class, used for automatic lua class loading

Member Function Documentation

◆ loadLua()

template<class T >
void IEvent< T >::loadLua ( lua_State * state)
static

Loads the event to the lua state.

Template parameter is used here for classes that don't have any properties or else so that you don't need to have too much boilerplate code.

Parameters
statethe lua state to load to

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