 |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../console.h"
23 description =
"loads a tag from an available cache file or from the engine tags folder";
24 syntax =
"tag_load <string>";
29 BlamResult
Execute(std::vector<std::string> arguments)
31 if (arguments.size() > 0)
33 std::string args_compiled =
"";
35 for (
int i = 0; i < arguments.size(); i++)
37 args_compiled += arguments.at(i);
39 if (i != arguments.size() - 1)
47 if (BR_SUCCEEDED(load_result))
53 Blam::Logger::LogEvent(
"failed to load tag at " + args_compiled +
" (load result was " + std::to_string(load_result) +
")", WSV_WARNING);
57 return BlamResult::Success_OK;
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:36
Class for the tag_load command.
Definition: tag_load.hpp:17
Class used to represent a console command.
Definition: console.h:33
BLAM BlamResult LoadTagFromFile(std::string tag_path, bool reload_if_already_loaded=true)
Loads a tag from the engine's tag directory (default is '.
Definition: tag_io.cpp:319
std::string name
The name of the console command.
Definition: console.h:35
TagLoadCommand()
Definition: tag_load.hpp:20
std::string syntax
The syntax information for the command. Shown to the user when using the help command with an argumen...
Definition: console.h:37
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:40
Namespace for things relating to the debug console.
Definition: abort.hpp:5
BlamResult Execute(std::vector< std::string > arguments)
Called upon command execution.
Definition: tag_load.hpp:29
@ Builtin
A command that is hard-coded into the engine.