mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
- Integrated linenoise library for line editing and completion in the server console. - Updated ServerLogger to handle external writes safely during logging. - Modified ServerMain to initialize and manage the ServerCli for command input. - The implementation is separate from everything else, so it doesn't affect anything else. - The command input section and execution section are separated into threads.
18 lines
529 B
C++
18 lines
529 B
C++
#pragma once
|
|
|
|
#include "IServerCliCommand.h"
|
|
|
|
namespace ServerRuntime
|
|
{
|
|
class CliCommandGamemode : public IServerCliCommand
|
|
{
|
|
public:
|
|
virtual const char *Name() const;
|
|
virtual std::vector<std::string> Aliases() const;
|
|
virtual const char *Usage() const;
|
|
virtual const char *Description() const;
|
|
virtual bool Execute(const ServerCliParsedLine &line, ServerCliEngine *engine);
|
|
virtual void Complete(const ServerCliCompletionContext &context, const ServerCliEngine *engine, std::vector<std::string> *out) const;
|
|
};
|
|
}
|