 |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../console.h"
6 #include <Strings/components/utils/io/io.h>
24 description =
"opens an engine data directory in the system file explorer.";
25 syntax =
"explore <user|engine> <string>";
37 if (arguments.size() < 2)
43 std::string
type = arguments.at(0);
44 std::string folder = arguments.at(1);
46 std::string file_path =
"";
48 if (BlamStrings::Utils::String::ToLower(
type) ==
"user")
58 BlamStrings::Utils::IO::ExploreDirectory(file_path);
#define CMD_ERR_WRONG_ARGS_COUNT
Macro for Wrong Arg Count command status. See #Blam::Resources::Console::WrongArgumentCount for more ...
Definition: console.h:10
BLAM BlamUserDataFolder GetUserDataFolderFromString(std::string folder)
Attempts to convert a string to the equivalent user data folder.
Definition: paths.cpp:285
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:141
ExploreCommand()
Definition: explore.hpp:21
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:57
~ExploreCommand()
Definition: explore.hpp:30
Class used to represent a console command.
Definition: console.h:54
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:43
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:36
Class for the explore command.
Definition: explore.hpp:18
std::string name
The name of the console command.
Definition: console.h:56
BlamCommandResult onCommand(std::vector< std::string > arguments)
Called upon command execution.
Definition: explore.hpp:35
std::string syntax
The syntax information for the command. Shown to the user when using the help command with an argumen...
Definition: console.h:58
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:61
@ Builtin
A command that is hard-coded into the engine.
#define CMD_OK
Macro for OK command status. See #Blam::Resources::Console::Ok for more details.
Definition: console.h:8
BlamCommandResult
Indicates the return state of a console command.
Definition: console.h:22
Namespace for things relating to the debug console.
Definition: abort.hpp:5
BLAM BlamEngineDataFolder GetEngineDataFolderFromString(std::string folder)
Attempts to convert a string to the equivalent engine data folder.
Definition: paths.cpp:327