 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file. 1 #include "../console.h"
3 #include <Strings/components/utils/io/io.h>
24 description =
"the same as game_start: launches a game for debugging purposes";
25 aliases = {
"level_name",
"scenario_name",
"game_start" };
32 std::string file_path =
"";
34 for (
int i = 0; i < arguments.size(); i++)
36 file_path += arguments.at(i);
38 if (i != (arguments.size() - 1))
72 Blam::Logger::LogEvent(
"could not search for scenario, build is using an unknown runtime configuration?", WSV_NONE);
@ Cache
The engine will load all content from cache files.
@ Builtin
A command that is hard-coded into the engine.
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:59
@ Tags
Directory used for reading engine tags. Defaults to ./tags/
Class used to represent a console command.
Definition: console.h:56
#define USER_DATA_PATH(path)
Macro to quickly access a user data folder.
Definition: config.h:43
MapNameCommand()
Definition: map_name.hpp:21
@ Tags
The engine will load all content from tags.
BlamCommandResult
Indicates the return state of a console command.
Definition: console.h:22
#define ENGINE_DATA_PATH(path)
Macro to quickly access a game engine data folder.
Definition: config.h:36
std::string name
The name of the console command.
Definition: console.h:58
@ Maps
Directory used for storing built-in cache files. Defaults to ./maps/
Class for the map_name command.
Definition: map_name.hpp:18
BLAM_EXT_API void LoadScenarioTag(std::string tag_path)
Loads a new scenario tag.
Definition: scenario.cpp:77
BLAM BlamContentSource GetContentSource()
Retrieves the current content source.
Definition: engine_definitions.cpp:32
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:63
BlamCommandResult onCommand(std::vector< std::string > arguments)
Called upon command execution.
Definition: map_name.hpp:30
std::vector< std::string > aliases
A list of aliases for the command. Executing any of these instead of the command name will behave the...
Definition: console.h:61
@ Tags
Directory storing user-created tags. Defaults to {DataRoot}/tags/.
@ Ok
The command was run without error.
Namespace for things relating to the debug console.
Definition: abort.hpp:5