Blamite Game Engine - blam!  00272.10.26.20.0001.blamite
The core library for the Blamite Game Engine.
show_stats.hpp
Go to the documentation of this file.
1 #include "../console.h"
2 
4 
5 namespace Blam::Console
6 {
17  {
18  public:
20  {
21  name = "show_stats";
22  description = "Shows framerate, pointer location, and ms/frame.";
23 
25  }
26 
28  {
29  delete this;
30  }
31 
32  CommandStatus onCommand(std::vector<std::string> arguments)
33  {
34  return CommandStatus::Ok;
35  }
36  };
37 }
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:19
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:32
Blam::Console::ShowStatsCommand
Class for the show_stats command.
Definition: show_stats.hpp:16
Blam::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5
Blam::Console::ShowStatsCommand::~ShowStatsCommand
~ShowStatsCommand()
Definition: show_stats.hpp:27
Blam::Console::ConsoleCommand
Class used to represent a console command.
Definition: console.h:50
Blam::Globals::Ok
@ Ok
The global was updated successfully.
Definition: globals.h:202