 |
Blamite Game Engine - Strings
00313.05.23.21.2038.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
5 #include "../ToolCommand.hpp"
6 #include "../console.h"
9 #define STRINGS_API __declspec(dllexport)
11 #define STRINGS_API __declspec(dllimport)
17 std::string app_name_label =
"tool";
24 syntax =
"help [command]";
25 description =
"shows a list of commands, or additional information for a specific command";
30 app_name_label = name;
33 int execute(std::vector<std::string> args)
41 for (
int i = 0; i <
commands.size(); i++)
52 for (
int i = 0; i <
commands.size(); i++)
54 if (
commands.at(i)->GetCommandName() == args.at(0))
69 BlamTool::Logger::LogEvent(
"command not found: '" + args.at(0) +
"', run '" + app_name_label +
" help' for a list of commands");
int execute(std::vector< std::string > args)
Definition: HelpCommand.hpp:33
#define STRINGS_API
Definition: HelpCommand.hpp:11
Definition: HelpCommand.hpp:14
HelpCommand()
Definition: HelpCommand.hpp:21
void SetApplicationLabelName(std::string name)
Definition: HelpCommand.hpp:28
std::vector< ToolCommand * > commands
Definition: console.cpp:11