 |
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.
8 #include <Strings/components/diagnostics/errors/errors.h>
9 #include <sdl2/SDL_keycode.h>
12 #define BLAM_EXT_API __declspec(dllexport)
14 #define BLAM_EXT_API __declspec(dllimport)
404 void Abort(std::string confirm =
"");
407 void Crash(std::string confirm);
410 void Drop(std::string tag_name);
412 void Explore(std::string mode, std::string path);
414 void H2Help(std::string command);
415 void H2Print(std::string message);
421 void MapName(std::string scenario_name);
425 void Print(std::string message);
void MapName(std::string scenario_name)
Definition: hs.cpp:99
BLAM_EXT_API BlamVector2 GetGameResolution()
Retrieves the current render resolution for the engine.
Definition: api.cpp:366
void Classify(std::string command)
Definition: hs.cpp:19
BLAM_EXT_API int EngineThreadInit()
Performs any additional engine initialization that needs to be called within the engine loop thread.
Definition: hooking.cpp:34
const wchar_t * window_name
Main window name (replaces what used to be called 'ver_conv').
Definition: main.cpp:64
void Win32DialogTest()
Definition: hs.cpp:179
void ToggleImguiWindow(std::string window_name)
Definition: hs.cpp:169
BLAM_EXT_API void SetDirectorPosition(BlamVector3 position)
Sets the current position of the debug director.
Definition: api.cpp:302
BLAM_EXT_API std::vector< BlamWorldObject * > Raycast()
Definition: api.cpp:233
void Cls()
Definition: hs.cpp:24
void H2Print(std::string message)
Definition: hs.cpp:69
BLAM_EXT_API BlamVector3 GetMousePosition3D()
Retrieves the 3D position of the mouse pointer.
Definition: api.cpp:339
void NoU()
Definition: hs.cpp:104
void Drop(std::string tag_name)
Definition: hs.cpp:44
BLAM_EXT_API BlamVector3 GetDirectorPosition()
Retrieves the current position of the debug director.
Definition: api.cpp:268
void OpenGameDir()
Definition: hs.cpp:109
BLAM_EXT_API void InitializeWorldState()
Initializes a new world state.
Definition: api.cpp:223
BLAM_EXT_API bool IsMouseCapturedByDirector()
Checks if the mouse is currently captured by the debug director.
Definition: api.cpp:356
BLAM_EXT_API float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: api.cpp:178
BLAM_EXT_API std::vector< std::string > GetKnownCommands()
Retrieves a list of known console commands.
Definition: api.cpp:68
Class used to represent a console command.
Definition: console.h:33
void SentryTest()
Definition: hs.cpp:149
@ Console
Indicates the build string should be formatted for the in-game console.
BLAM_EXT_API void RegisterGlobal(BlamEngineGlobal var)
Registers a new engine global.
Definition: api.cpp:98
void Quit()
Definition: hs.cpp:124
BLAM_EXT_API void SetDirectorRotation(BlamVector3 rotation)
Sets the current rotation of the debug director.
Definition: api.cpp:310
BLAM_EXT_API void CleanupEngineResources()
Instructs the engine to clean up any resources.
Definition: hooking.cpp:39
void GeneratePlugins()
Definition: hs.cpp:59
void Crash(std::string confirm)
Definition: hs.cpp:29
void ListLevels()
Definition: hs.cpp:89
BLAM_EXT_API int * GetGlobalAsInteger(std::string name)
Retrieves a global's value as an int.
Definition: api.cpp:173
BLAM_EXT_API void MainLoop()
Function for the engine's main loop.
Definition: hooking.cpp:29
void ScreenRes(std::string resolution)
Definition: hs.cpp:134
BLAM_EXT_API void SetDirectorSpeed(float speed)
Sets the current speed of the debug director.
Definition: api.cpp:318
BLAM_EXT_API short * GetGlobalAsShort(std::string name)
Retrieves a global's value as a short.
Definition: api.cpp:163
BLAM_EXT_API bool MainWindowProcedure(SDL_Event event)
Window Procedure for the main application window.
Definition: hooking.cpp:19
BLAM_EXT_API BlamConsoleCommand GetCommandInfo(std::string name)
Retrieves a command with the specified name.
Definition: api.cpp:56
BlamGlobalUpdateResult
Enumerator for the result of a global update attempt.
Definition: globals.h:9
BLAM_EXT_API BlamColor * GetGlobalAsColor(std::string name)
Retrieves a global's value as a BlamColor.
Definition: api.cpp:183
void TagFieldSizes()
Definition: hs.cpp:159
BLAM_EXT_API void MarkWorldStateForDestroy(bool wait_for_destroy=false)
Marks the current world state to be destroyed before rendering the next frame.
Definition: api.cpp:238
@ Tags
The engine will load all content from tags.
BLAM_EXT_API bool * GetGlobalAsBoolean(std::string name)
Retrieves a global's value as a boolean.
Definition: api.cpp:153
BLAM_EXT_API float GetDirectorSpeed()
Retrieves the current speed of the debug director.
Definition: api.cpp:290
void ListColors()
Definition: hs.cpp:84
BLAM_EXT_API BlamEngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: api.cpp:113
BLAM_EXT_API BlamVector2 GetMousePosition2D()
Retrieves the 2D position of the mouse pointer.
Definition: api.cpp:326
BlamGlobalType
Enumerator for the type of global variable.
Definition: globals.h:22
void DebugMenuRebuild()
Definition: hs.cpp:39
BLAM_EXT_API BlamVector3 GetDirectorRotation()
Retrieves the current rotation of the debug director.
Definition: api.cpp:280
Structure containing data for a game engine global.
Definition: globals.h:44
BLAM_EXT_API long * GetGlobalAsLong(std::string name)
Retrieves a global's value as a long.
Definition: api.cpp:168
void ScriptDoc(bool quiet=false)
Definition: hs.cpp:144
void Version()
Definition: hs.cpp:174
void Explore(std::string mode, std::string path)
Definition: hs.cpp:54
Namespace for version 1 of the Blamite Game Engine API.
Definition: api.h:25
BLAM_EXT_API BlamWorldState * GetWorldState()
Retrieves the current world state.
Definition: api.cpp:218
Definition: project_info.h:5
void Abort(std::string confirm="")
Definition: hs.cpp:5
BLAM_EXT_API int StartEngine(int args_count, char *args[], SDL_Window *window)
Entry point for the engine.
Definition: hooking.cpp:24
BLAM_EXT_API void SetEngineViewportActive(bool viewport_active)
API wrapper around ImGui_ImplSDL2_SetActiveWindowOverride.
Definition: api.cpp:351
BLAM_EXT_API void SetCurrentProjectInfo(BlamProjectInfo project_info)
Definition: api.cpp:17
BLAM_EXT_API bool GetEngineHookState()
Retrieves the engine's hook state.
Definition: hooking.cpp:14
BLAM_EXT_API std::string RegisterCommand(BlamConsoleCommand *command)
Register a new command object.
Definition: api.cpp:32
void H2Help(std::string command)
Definition: hs.cpp:64
BLAM_EXT_API std::string * GetGlobalAsString(std::string name)
Retrieves a global's value as a string.
Definition: api.cpp:158
BLAM_EXT_API void ExecuteConsoleCommand(const char *command)
Runs a command through the engine's console.
Definition: api.cpp:251
void OpenWebURL(std::string url)
Definition: hs.cpp:114
void Help()
Definition: hs.cpp:74
void CreateCmdObj()
Definition: hs.cpp:34
BLAM_EXT_API void LogEvent(std::string message)
Writes a message to the game engine log.
Definition: api.cpp:188
void ReloadMaterialDatablocks()
Definition: hs.cpp:129
BLAM_EXT_API BlamGlobalUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: api.cpp:118
void ShowStats()
Definition: hs.cpp:154
#define BLAM_EXT_API
Definition: api.h:14
BLAM_EXT_API bool UnregisterCommand(std::string name)
Unregisters the console command with the specified name.
Definition: api.cpp:38
void TagLoadForce(std::string tag_path)
Definition: hs.cpp:164
BLAM_EXT_API void ResizeViewport(int width, int height)
Resizes the engine's viewport resolution.
Definition: api.cpp:256
Class used to contain and access tag data.
Definition: tags.h:125
BLAM_EXT_API std::string GetGlobalTypeLabel(BlamGlobalType type)
Retrieves a string representation of a global's type, for use in UI.
Definition: api.cpp:88
BLAM_EXT_API bool GlobalExists(std::string id)
Determines whether or not a global exists.
Definition: api.cpp:93
Definition: SdlEmulationLayer.h:735
void Print(std::string message)
Definition: hs.cpp:119
BLAM_EXT_API void SetEngineHookState(bool hook_state)
Sets whether or not the engine is hooked via Qt.
Definition: hooking.cpp:9
void Screenshot(std::string filename="")
Definition: hs.cpp:139
void ListenerBugCheck()
Definition: hs.cpp:94
void History()
Definition: hs.cpp:79
Class representing a world state.
Definition: world_objects.h:715
Class representing a tag class.
Definition: tags.h:202
void DxRenderTargetClear(bool enable)
Definition: hs.cpp:49
BLAM_EXT_API std::map< std::string, BlamEngineGlobal > * GetGlobalsList()
Retrieves the list of loaded globals.
Definition: api.cpp:83
BLAM_EXT_API void DestroyWorldState()
Destroys the current world state.
Definition: api.cpp:228