 |
Blamite Game Engine - blam!
00423.10.27.24.0533.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
7 #include <Strings/components/resources/project_info/project_info.h>
8 #include <Strings/components/diagnostics/errors/errors.h>
11 #define BLAM_EXT_API __declspec(dllexport)
13 #define BLAM_EXT_API __declspec(dllimport)
374 void Abort(std::string confirm =
"");
377 void Crash(std::string confirm);
380 void Drop(std::string tag_name);
382 void Explore(std::string mode, std::string path);
384 void H2Help(std::string command);
385 void H2Print(std::string message);
391 void MapName(std::string scenario_name);
395 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:284
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 std::vector< BlamWorldObject * > Raycast()
Definition: api.cpp:212
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:264
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:227
void OpenGameDir()
Definition: hs.cpp:109
BLAM_EXT_API bool IsMouseCapturedByDirector()
Checks if the mouse is currently captured by the debug director.
Definition: api.cpp:274
BLAM_EXT_API float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: api.cpp:167
BLAM_EXT_API std::vector< std::string > GetKnownCommands()
Retrieves a list of known console commands.
Definition: api.cpp:57
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:87
void Quit()
Definition: hs.cpp:124
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:162
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 short * GetGlobalAsShort(std::string name)
Retrieves a global's value as a short.
Definition: api.cpp:152
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:45
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:172
void TagFieldSizes()
Definition: hs.cpp:159
@ 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:142
BLAM_EXT_API float GetDirectorSpeed()
Retrieves the current speed of the debug director.
Definition: api.cpp:239
void ListColors()
Definition: hs.cpp:84
BLAM_EXT_API BlamEngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: api.cpp:102
BLAM_EXT_API BlamVector2 GetMousePosition2D()
Retrieves the 2D position of the mouse pointer.
Definition: api.cpp:251
BlamGlobalType
Enumerator for the type of global variable.
Definition: globals.h:22
void DebugMenuRebuild()
Definition: hs.cpp:39
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:157
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:24
BLAM_EXT_API BlamWorldState * GetWorldState()
Retrieves the current world state.
Definition: api.cpp:207
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:269
BLAM_EXT_API void SetCurrentProjectInfo(BlamProjectInfo project_info)
Definition: api.cpp:16
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:21
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:147
BLAM_EXT_API void ExecuteConsoleCommand(const char *command)
Runs a command through the engine's console.
Definition: api.cpp:217
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:177
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:107
void ShowStats()
Definition: hs.cpp:154
#define BLAM_EXT_API
Definition: api.h:13
BLAM_EXT_API bool UnregisterCommand(std::string name)
Unregisters the console command with the specified name.
Definition: api.cpp:27
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:222
Class used to contain and access tag data.
Definition: tags.h:124
BLAM_EXT_API std::string GetGlobalTypeLabel(BlamGlobalType type)
Retrieves a string representation of a global's type, for use in UI.
Definition: api.cpp:77
BLAM_EXT_API bool GlobalExists(std::string id)
Determines whether or not a global exists.
Definition: api.cpp:82
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:540
Class representing a tag class.
Definition: tags.h:193
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:72