 |
Blamite Game Engine - blam!
00406.12.10.23.1457.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>";
30 BlamResult
Execute(std::vector<std::string> arguments)
32 if (arguments.size() < 2)
34 return BlamResult::Error_Command_WrongArgumentCount;
38 std::string
type = arguments.at(0);
39 std::string folder = arguments.at(1);
41 std::string file_path =
"";
43 if (BlamStrings::Utils::String::ToLower(
type) ==
"user")
53 BlamStrings::Utils::IO::ExploreDirectory(file_path);
56 return BlamResult::Success_OK;
@ Builtin
A command that is hard-coded into the engine.
BLAM BlamUserDataFolder GetUserDataFolderFromString(std::string folder)
Attempts to convert a string to the equivalent user data folder.
Definition: paths.cpp:344
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
ExploreCommand()
Definition: explore.hpp:21
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:34
Class used to represent a console command.
Definition: console.h:31
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:41
BlamResult Execute(std::vector< std::string > arguments)
Called upon command execution.
Definition: explore.hpp:30
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:34
Class for the explore command.
Definition: explore.hpp:18
std::string name
The name of the console command.
Definition: console.h:33
std::string syntax
The syntax information for the command. Shown to the user when using the help command with an argumen...
Definition: console.h:35
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:38
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:363