Elaztek Developer Hub
Blamite Game Engine - blam!  00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
init_world_state.hpp
Go to the documentation of this file.
1 #include "../console.h"
2 
5 
7 {
15  {
16  public:
18  {
19  name = "init_world_state";
20  description = "Initializes (or re-initializes) the world state. Will clear any existing world state if applicable.";
21 
23  }
24 
25  BlamResult Execute(std::vector<std::string> arguments)
26  {
28  Blam::Logger::LogEvent("world state initialized");
29  return BlamResult::Success_OK;
30  }
31  };
32 }
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
BlamConsoleCommand::description
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:36
logger.h
Blam::Resources::Console::InitWorldStateCommand::Execute
BlamResult Execute(std::vector< std::string > arguments)
Called upon command execution.
Definition: init_world_state.hpp:25
Blam::World::InitializeWorldState
BLAM void InitializeWorldState()
Initializes a new world state.
Definition: world.cpp:9
world.h
BlamConsoleCommand
Class used to represent a console command.
Definition: console.h:33
BlamConsoleCommand::name
std::string name
The name of the console command.
Definition: console.h:35
BlamConsoleCommand::type
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:40
Blam::Resources::Console::InitWorldStateCommand
Class for the init_world_state command.
Definition: init_world_state.hpp:14
Blam::Resources::Console::InitWorldStateCommand::InitWorldStateCommand
InitWorldStateCommand()
Definition: init_world_state.hpp:17
Blam::Resources::Console
Namespace for things relating to the debug console.
Definition: abort.hpp:5
BlamCommandType::Builtin
@ Builtin
A command that is hard-coded into the engine.