Mineserver
A rewrite of Minecraft 1.8.9 in C++ !
Loading...
Searching...
No Matches
ISender Class Referenceabstract

Sender Interface. More...

#include <commands.h>

Inheritance diagram for ISender:
ConsoleManager Player

Public Types

enum  SenderType { CONSOLE = 0 , PLAYER , COMMAND_BLOCK }
 Sender type. More...
 

Public Member Functions

virtual void sendMessage (const ChatMessage &message)=0
 Sends a message to the sender.
 

Static Public Member Functions

static void loadLua (lua_State *state, const char *namespaceName)
 Register Lua things.
 

Detailed Description

Sender Interface.

Interface for all command-sending capable things (Players, command blocks console).

Member Enumeration Documentation

◆ SenderType

Sender type.

Type of the sender, for casting utilities.

Member Function Documentation

◆ loadLua()

void ISender::loadLua ( lua_State * state,
const char * namespaceName )
static

Register Lua things.

Parameters
statestate to register to
namespaceNamenamespace name

◆ sendMessage()

virtual void ISender::sendMessage ( const ChatMessage & message)
pure virtual

Sends a message to the sender.

Implemented in ConsoleManager, and Player.


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