![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
#include "console.h"#include "commands/abort.hpp"#include "commands/classify.hpp"#include "commands/cls.hpp"#include "commands/crash.hpp"#include "commands/create_cmd_obj.hpp"#include "commands/debug_menu_how_to.hpp"#include "commands/debug_menu_rebuild.hpp"#include "commands/drop.hpp"#include "commands/explore.hpp"#include "commands/find.hpp"#include "commands/generate_plugins.hpp"#include "commands/h2help.hpp"#include "commands/h2print.hpp"#include "commands/help.hpp"#include "commands/history.hpp"#include "commands/init_world_state.hpp"#include "commands/list_colors.hpp"#include "commands/list_levels.hpp"#include "commands/listener_bug_check.hpp"#include "commands/log.hpp"#include "commands/map_name.hpp"#include "commands/nou.hpp"#include "commands/open_game_dir.hpp"#include "commands/open_web_url.hpp"#include "commands/print.hpp"#include "commands/quit.hpp"#include "commands/reload_material_datablocks.hpp"#include "commands/reload_shader.hpp"#include "commands/render_model_performance_test.hpp"#include "commands/resolution.hpp"#include "commands/screenshot.hpp"#include "commands/script_doc.hpp"#include "commands/sentry_test.hpp"#include "commands/set_camera.hpp"#include "commands/set_project_root.hpp"#include "commands/show_stats.hpp"#include "commands/tag_field_sizes.hpp"#include "commands/tag_load.hpp"#include "commands/tag_load_force.hpp"#include "commands/toggle_imgui_window.hpp"#include "commands/viewport_mode.hpp"#include "commands/win32_dialog_test.hpp"#include "commands/version.hpp"#include "commands/write_debug_info.hpp"#include "components/resources/engine_text/engine_text.h"
Include dependency graph for console.cpp:Functions | |
| void | DisplayCommandError (BlamResult error_code, BlamConsoleCommand *command) |
| Displays an error message to inform the user why a command failed to run. More... | |
| void | display_global_update_message (BlamGlobalUpdateResult error_code, BlamEngineGlobal *global) |
| Displays an error message to inform the user why a global variable failed to update. More... | |
| void | console_update_global (std::string global_name, std::vector< std::string > arguments) |
| Function to handle updating an engine global from the console. More... | |
Variables | |
| std::map< std::string, BlamConsoleCommand * > | command_list = std::map<std::string, BlamConsoleCommand*>() |
| The list of all loaded console commands. More... | |
| void console_update_global | ( | std::string | global_name, |
| std::vector< std::string > | arguments | ||
| ) |
Function to handle updating an engine global from the console.
| global_name | - The name of the global being updated. |
| arguments | - The arguments provided to the command. |
Here is the call graph for this function:
Here is the caller graph for this function:| void display_global_update_message | ( | BlamGlobalUpdateResult | error_code, |
| BlamEngineGlobal * | global | ||
| ) |
Displays an error message to inform the user why a global variable failed to update.
useEnhancedGvarMessages configuration setting. When disabled, the user will see the classic message, which resembles the following: The option is enabled by default for added user-friendliness.</blockquote>When the setting is enabled, the output changes to the following to keep it easy tounderstand:<blockquote>```invalid argument type provided for gvar ui_scale_factor, expected int
| error_code | - The status of the global update result. See #Blam::Globals::GvarUpdateResult for details. |
| global | - A pointer to the global that was attempted to be modified. |
Here is the call graph for this function:
Here is the caller graph for this function:| void DisplayCommandError | ( | BlamResult | error_code, |
| BlamConsoleCommand * | command | ||
| ) |
Displays an error message to inform the user why a command failed to run.
| error_code | - The command status returned by the Execute() call. |
| command | - The console command that was executed. |
Here is the call graph for this function:
Here is the caller graph for this function:| std::map<std::string, BlamConsoleCommand*> command_list = std::map<std::string, BlamConsoleCommand*>() |
The list of all loaded console commands.
The key is the name of the command. The value is a pointer to the console command object.