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

Console manager. More...

#include <console.h>

Inheritance diagram for ConsoleManager:
ISender

Public Member Functions

 ConsoleManager ()
 Construct a new Console Manager object.
 
 ~ConsoleManager ()
 Destroy the Console Manager object.
 
void start ()
 Starts listening for commands.
 
void stop ()
 Stops listening for commands.
 
void sendMessage (const ChatMessage &message) override
 Sends a message to the console.
 

Static Public Member Functions

static void onPostPrint (logger::PostPrintEvent event)
 Post print hook.
 
static ConsoleManagerinst ()
 Gets Console Manager instance.
 
- Static Public Member Functions inherited from ISender
static void loadLua (lua_State *state, const char *namespaceName)
 Register Lua things.
 

Additional Inherited Members

- Public Types inherited from ISender
enum  SenderType { CONSOLE = 0 , PLAYER , COMMAND_BLOCK }
 Sender type. More...
 

Detailed Description

Console manager.

Member Function Documentation

◆ inst()

static ConsoleManager & ConsoleManager::inst ( )
inlinestatic

Gets Console Manager instance.

Returns
ConsoleManager& the instance

◆ onPostPrint()

void ConsoleManager::onPostPrint ( logger::PostPrintEvent event)
static

Post print hook.

So that we can print the currently written input at the end of the IO.

Parameters
eventthe post print event

◆ sendMessage()

void ConsoleManager::sendMessage ( const ChatMessage & message)
overridevirtual

Sends a message to the console.

Parameters
messagethe message to send

Implements ISender.


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