 |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
3 #include "../console.h"
18 name =
"viewport_mode";
19 syntax =
"viewport_mode <3d|2d>";
25 BlamResult
Execute(std::vector<std::string> arguments)
27 if (arguments.size() != 1)
29 return BlamResult::Error_Command_WrongArgumentCount;
32 if (arguments.at(0) ==
"3d")
37 else if (arguments.at(0) ==
"2d")
44 return BlamResult::Error_Command_InvalidArguments;
47 return BlamResult::Success_OK;
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:36
Class used to represent a console command.
Definition: console.h:33
ViewportModeCommand()
Definition: viewport_mode.hpp:16
std::string name
The name of the console command.
Definition: console.h:35
std::string syntax
The syntax information for the command. Shown to the user when using the help command with an argumen...
Definition: console.h:37
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:40
BLAM void LogEventForce(std::string message)
Forcibly logs a message to the log and/or console.
Definition: aliases.cpp:262
Class for the viewport_mode command.
Definition: viewport_mode.hpp:13
BLAM void SetCamera2DMode(bool use_2d, bool copy_from_last=false)
Definition: director.cpp:41
BlamResult Execute(std::vector< std::string > arguments)
Called upon command execution.
Definition: viewport_mode.hpp:25
Namespace for things relating to the debug console.
Definition: abort.hpp:5
@ Builtin
A command that is hard-coded into the engine.