Blamite Game Engine - Blam (Core)
create_cmd_obj.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../console.h"
5 
6 namespace Blam::Console
7 {
17  {
18  public:
20  {
21  name = "create_cmd_obj";
22  description = "Early debug command used to test CommandScript objects. No longer used and has no functionality other than a warning message";
23 
25  }
26 
28  {
29  delete this;
30  }
31 
32  CommandStatus onCommand(std::vector<std::string> arguments)
33  {
34  Blam::Logger::LogEventForce("the above message is a placeholder taken from halo 2 pc sapien editor", WSV_ERROR);
35 
36  return CommandStatus::Ok;
37  }
38  };
39 }
Blam::Console::CreateCommandObjectCommand::~CreateCommandObjectCommand
~CreateCommandObjectCommand()
Definition: create_cmd_obj.hpp:27
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::CreateCommandObjectCommand
Class for the create_cmd_obj command.
Definition: create_cmd_obj.hpp:16
Blam::Console::CommandStatus
CommandStatus
Indicates the return state of a console command.
Definition: console.h:28
logger.h
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
WSV_ERROR
#define WSV_ERROR
Macro for 'Error' log seveirty. Original pre-enum value was 2.
Definition: logger.h:17
Blam::Console::CreateCommandObjectCommand::CreateCommandObjectCommand
CreateCommandObjectCommand()
Definition: create_cmd_obj.hpp:19
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::ConsoleCommand
Class used to represent a console command.
Definition: console.h:50
Blam::Logger::LogEventForce
BLAM void LogEventForce(std::string message, LogSeverity severity)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:137
Blam::Console::CreateCommandObjectCommand::onCommand
CommandStatus onCommand(std::vector< std::string > arguments)
Called upon command execution.
Definition: create_cmd_obj.hpp:32