Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
reload_material_datablocks.hpp
Go to the documentation of this file.
1 #include "../console.h"
2 
7 #include "core.h"
8 
10 {
18  {
19  public:
21  {
22  name = "reload_material_datablocks";
23  description = "Rebuilds all OGRE datablocks from their original material tags.";
24  //aliases = { "" };
25 
27  }
28 
30  {
31 
32  }
33 
34  BlamCommandResult onCommand(std::vector<std::string> arguments)
35  {
37 
38  Blam::Logger::LogEvent("datablocks rebuilt");
39  return BlamCommandResult::Ok;
40  }
41  };
42 }
ui.h
BlamCommandType::Builtin
@ Builtin
A command that is hard-coded into the engine.
Blam::Resources::Console::ReloadMaterialDatablocksCommand::~ReloadMaterialDatablocksCommand
~ReloadMaterialDatablocksCommand()
Definition: reload_material_datablocks.hpp:29
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
BlamConsoleCommand::description
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:59
logger.h
Blam::Resources::Console::ReloadMaterialDatablocksCommand::onCommand
BlamCommandResult onCommand(std::vector< std::string > arguments)
Called upon command execution.
Definition: reload_material_datablocks.hpp:34
console.h
BlamConsoleCommand
Class used to represent a console command.
Definition: console.h:56
Blam::Resources::Console::ReloadMaterialDatablocksCommand::ReloadMaterialDatablocksCommand
ReloadMaterialDatablocksCommand()
Definition: reload_material_datablocks.hpp:20
rendering.h
BlamCommandResult
BlamCommandResult
Indicates the return state of a console command.
Definition: console.h:22
BlamRendering::OGRE::Materials::RebuildDatablocks
BLAM void RebuildDatablocks()
Definition: materials.cpp:619
BlamConsoleCommand::name
std::string name
The name of the console command.
Definition: console.h:58
BlamConsoleCommand::type
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:63
core.h
Blam::Resources::Console::ReloadMaterialDatablocksCommand
Class for the cls command.
Definition: reload_material_datablocks.hpp:17
BlamCommandResult::Ok
@ Ok
The command was run without error.
Blam::Resources::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5