forked from mmbednarek/minecpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCore.cpp
More file actions
73 lines (69 loc) · 5.12 KB
/
Core.cpp
File metadata and controls
73 lines (69 loc) · 5.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include <minecpp/command/core/Core.h>
#include <minecpp/command/CommandManager.h>
#include <minecpp/command/core/Cord.h>
#include <minecpp/command/core/DecimateBlocks.h>
#include <minecpp/command/core/Echo.h>
#include <minecpp/command/core/Fly.h>
#include <minecpp/command/core/Format.h>
#include <minecpp/command/core/Give.h>
#include <minecpp/command/core/KillAll.h>
#include <minecpp/command/core/ListEntities.h>
#include <minecpp/command/core/ReloadChunk.h>
#include <minecpp/command/core/Spawn.h>
#include <minecpp/command/core/Sync.h>
#include <minecpp/command/core/Teleport.h>
namespace minecpp::command::core {
void register_commands(CommandManager &command_manager)
{
command_manager.register_command<command::core::Echo>();
command_manager.register_command<command::core::Give>();
command_manager.register_command<command::core::ReloadChunk>();
command_manager.register_command<command::core::Sync>();
command_manager.register_command<command::core::ListEntities>();
command_manager.register_command<command::core::Cord>();
command_manager.register_command<command::core::Spawn>();
command_manager.register_command<command::core::Fly>();
command_manager.register_command<command::core::KillAll>();
command_manager.register_command<command::core::Teleport>();
command_manager.register_command<command::core::DecimateBlocks>();
command_manager.register_command_as<command::core::Format>("black", format::Color::Black, false);
command_manager.register_command_as<command::core::Format>("black-bold", format::Color::Black, true);
command_manager.register_command_as<command::core::Format>("dark-blue", format::Color::DarkBlue, false);
command_manager.register_command_as<command::core::Format>("dark-blue-bold", format::Color::DarkBlue,
true);
command_manager.register_command_as<command::core::Format>("dark-green", format::Color::DarkGreen, false);
command_manager.register_command_as<command::core::Format>("dark-green-bold", format::Color::DarkGreen,
true);
command_manager.register_command_as<command::core::Format>("dark-aqua", format::Color::DarkAqua, false);
command_manager.register_command_as<command::core::Format>("dark-aqua-bold", format::Color::DarkAqua,
true);
command_manager.register_command_as<command::core::Format>("dark-red", format::Color::DarkRed, false);
command_manager.register_command_as<command::core::Format>("dark-red-bold", format::Color::DarkRed, true);
command_manager.register_command_as<command::core::Format>("dark-purple", format::Color::DarkPurple,
false);
command_manager.register_command_as<command::core::Format>("dark-purple-bold", format::Color::DarkPurple,
true);
command_manager.register_command_as<command::core::Format>("gold", format::Color::Gold, false);
command_manager.register_command_as<command::core::Format>("gold-bold", format::Color::Gold, true);
command_manager.register_command_as<command::core::Format>("gray", format::Color::Gray, false);
command_manager.register_command_as<command::core::Format>("gray-bold", format::Color::Gray, true);
command_manager.register_command_as<command::core::Format>("darkgray", format::Color::DarkGray, false);
command_manager.register_command_as<command::core::Format>("darkgray-bold", format::Color::DarkGray, true);
command_manager.register_command_as<command::core::Format>("blue", format::Color::Blue, false);
command_manager.register_command_as<command::core::Format>("blue-bold", format::Color::Blue, true);
command_manager.register_command_as<command::core::Format>("green", format::Color::Green, false);
command_manager.register_command_as<command::core::Format>("green-bold", format::Color::Green, true);
command_manager.register_command_as<command::core::Format>("aqua", format::Color::Aqua, false);
command_manager.register_command_as<command::core::Format>("aqua-bold", format::Color::Aqua, true);
command_manager.register_command_as<command::core::Format>("red", format::Color::Red, false);
command_manager.register_command_as<command::core::Format>("red-bold", format::Color::Red, true);
command_manager.register_command_as<command::core::Format>("light-purple", format::Color::LightPurple,
false);
command_manager.register_command_as<command::core::Format>("light-purple-bold", format::Color::LightPurple,
true);
command_manager.register_command_as<command::core::Format>("yellow", format::Color::Yellow, false);
command_manager.register_command_as<command::core::Format>("yellow-bold", format::Color::Yellow, true);
command_manager.register_command_as<command::core::Format>("white", format::Color::White, false);
command_manager.register_command_as<command::core::Format>("white-bold", format::Color::White, true);
}
}// namespace minecpp::command::core