Elaztek Developer Hub
Blamite Game Engine - Strings  00307.01.26.21.0804.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamStrings Namespace Reference

Namespace for Blamite's shared C++ library. More...

Namespaces

 Converters
 Namespace containing functions to convert between various types of variables.
 
 Hooks
 
 Interface
 
 Resources
 
 Settings
 
 Utils
 Namespace containing general-purpose utilities.
 

Functions

const STRINGS_API char * GetStringFromID (int string_id, int max_length)
 Retrieves a string from its ID. More...
 

Detailed Description

Namespace for Blamite's shared C++ library.

This namespace contains everything within the library that is publicly usable. It acts as a general purpose utility and resource library used by both the game engine and the various tools that use it.

Function Documentation

◆ GetStringFromID()

const char * BlamStrings::GetStringFromID ( int  string_id,
int  max_length 
)

Retrieves a string from its ID.

Parameters
string_id- The ID of the string within the DLL's string table.
max_length- The maximum length of the string to retrieve. The source string will be trimmed if it is longer than this. If it is the same or longer than the source string, the entire string will be returned.
Returns
The string if it was provided, or nullptr if no matching string was found.
Deprecated:
Win32 string tables should be avoided going forward. Use another method of storing strings.