28 lines
599 B
C++
28 lines
599 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include "string.h"
|
|
|
|
class CommandOrigin;
|
|
|
|
enum class MCCATEGORY {
|
|
//
|
|
};
|
|
|
|
struct MCRESULT {
|
|
bool success;
|
|
MCCATEGORY category;
|
|
unsigned short code;
|
|
};
|
|
|
|
class MinecraftCommands {
|
|
|
|
public:
|
|
|
|
static MCRESULT (*MinecraftCommands_requestCommandExecution)(MinecraftCommands*, std::unique_ptr<CommandOrigin>, mcpe::string const&, mcpe::string&);
|
|
|
|
MCRESULT requestCommandExecution(std::unique_ptr<CommandOrigin> o, mcpe::string const& s, mcpe::string& s2) {
|
|
return MinecraftCommands_requestCommandExecution(this, std::move(o), s, s2);
|
|
}
|
|
|
|
}; |