Blamite Game Engine - Blam (Core)
show_stats.hpp
Go to the documentation of this file.
1 #include "../console.h"
3 
4 namespace Blam::Console
5 {
16  {
17  public:
19  {
20  name = "show_stats";
21  description = "Shows framerate, pointer location, and ms/frame.";
22 
24  }
25 
27  {
28  delete this;
29  }
30 
31  CommandStatus onCommand(std::vector<std::string> arguments)
32  {
33  return CommandStatus::Ok;
34  }
35  };
36 }
Blam::Console::ConsoleCommand::description
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:73
Blam::Console::ConsoleCommand::type
CommandType type
The type of command this is. See Blam::Console::CommandType for more information.
Definition: console.h:77
Blam::Console::CommandStatus
CommandStatus
Indicates the return state of a console command.
Definition: console.h:28
logger.h
Blam::Console::ShowStatsCommand::ShowStatsCommand
ShowStatsCommand()
Definition: show_stats.hpp:18
Blam::Console::Builtin
@ Builtin
A command that is hard-coded into the engine.
Definition: console.h:41
Blam::Console::ConsoleCommand::name
std::string name
The name of the console command.
Definition: console.h:70
Blam::Console::ShowStatsCommand::onCommand
CommandStatus onCommand(std::vector< std::string > arguments)
Called upon command execution.
Definition: show_stats.hpp:31
Blam::Console::ShowStatsCommand
Class for the show_stats command.
Definition: show_stats.hpp:15
Blam::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5
Blam::Console::Ok
@ Ok
The command was run without error.
Definition: console.h:30
Blam::Console::ShowStatsCommand::~ShowStatsCommand
~ShowStatsCommand()
Definition: show_stats.hpp:26
Blam::Console::ConsoleCommand
Class used to represent a console command.
Definition: console.h:50