Blamite Game Engine - blam!  00272.10.26.20.0001.blamite
The core library for the Blamite Game Engine.
create_cmd_obj.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../console.h"
4 
6 
7 namespace Blam::Console
8 {
18  {
19  public:
21  {
22  name = "create_cmd_obj";
23  description = "Early debug command used to test CommandScript objects. No longer used and has no functionality other than a warning message";
24 
26  }
27 
29  {
30  delete this;
31  }
32 
33  CommandStatus onCommand(std::vector<std::string> arguments)
34  {
35  Blam::Logger::LogEventForce("the above message is a placeholder taken from halo 2 pc sapien editor", WSV_ERROR);
36 
37  return CommandStatus::Ok;
38  }
39  };
40 }
Blam::Console::CreateCommandObjectCommand::~CreateCommandObjectCommand
~CreateCommandObjectCommand()
Definition: create_cmd_obj.hpp:28
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:17
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:20
Blam::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5
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:150
Blam::Console::CreateCommandObjectCommand::onCommand
CommandStatus onCommand(std::vector< std::string > arguments)
Called upon command execution.
Definition: create_cmd_obj.hpp:33
Blam::Globals::Ok
@ Ok
The global was updated successfully.
Definition: globals.h:202