 |
Blamite Game Engine - Strings
00411.04.21.24.0017.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
6 #define STRINGS_API __declspec(dllexport)
8 #define STRINGS_API __declspec(dllimport)
19 #define PROJECT_FILE_FORMAT_VERSION 1
46 std::string
copyright =
"Copyright (c) Elaztek Studios 2013-2023";
47 std::string
website =
"https://elaztek.com/";
std::string affiliates
Definition: project_info.h:45
#define PROJECT_FILE_FORMAT_VERSION
The current project file format version.
Definition: project_info.h:19
game_info_data game_info
Definition: project_info.h:52
bool GetChildNodeValueBool(rapidxml::xml_node<> *parent_node, std::string child_node_name, bool _default=false)
Retrieves the value of a child node within an XML node.
Definition: project_info.cpp:58
engine_settings_data engine_settings
Definition: project_info.h:80
std::string update_info_url
Definition: project_info.h:56
std::string publisher
Definition: project_info.h:43
std::string movies_dir
Definition: project_info.h:71
bool allow_user_tag_overrides
Definition: project_info.h:77
STRINGS_API void LogEvent(BlamBasicLogMessage message)
Logs an event to the logger.
Definition: logger.cpp:41
std::string developer
Definition: project_info.h:44
#define bstoi(x)
Macro for converting string to int. Meant as a drop-in replacement for stoi()
Definition: converters.h:17
std::string campaign_info
Definition: project_info.h:66
Definition: project_info.h:39
STRINGS_API std::string FormatXMLString(std::string xml_contents, int spaces_per_indent=4)
Formats a string containing XML data into a human-readable format.
Definition: xml.cpp:91
std::string plugins_dir
Definition: project_info.h:74
std::string tags_dir
Definition: project_info.h:70
STRINGS_API bool SaveProjectInfo(BlamProjectInfo project)
Saves a project information file to disk.
Definition: project_info.cpp:190
network_settings_data network_settings
Definition: project_info.h:61
STRINGS_API BlamProjectInfo LoadProjectInfo(std::string file_path)
Loads a project information file from disk.
Definition: project_info.cpp:75
std::string invision_api_url
Definition: project_info.h:58
STRINGS_API bool CreateNewFile(std::string filename, std::string file_contents)
Creates a file with the specified contents, or overwrites an existing file if it already exists.
Definition: io.cpp:75
xml_node< Ch > * first_node(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
Gets first child node, optionally matching node name.
Definition: rapidxml.hpp:936
Namespace containing functions used to work with Blam Project Information files.
Definition: project_info.h:86
std::string default_cache
Definition: project_info.h:65
Structure representing a Blam Project Information file.
Definition: project_info.h:33
STRINGS_API bool IsStringInt(std::string string)
Checks whether or not a string is a valid representation of an integer.
Definition: converters.cpp:263
std::string version
Definition: project_info.h:48
std::string cache_dir
Definition: project_info.h:73
std::string icon
Definition: project_info.h:49
This class represents root of the DOM hierarchy.
Definition: rapidxml.hpp:139
Definition: project_info.h:63
Class representing a node of XML document.
Definition: rapidxml.hpp:137
std::string data_dir
Definition: project_info.h:72
STRINGS_API bool StringToBool(std::string string)
Converts a string to a boolean.
Definition: converters.cpp:67
bool load_result
Definition: project_info.h:35
std::string content_root
Definition: project_info.h:69
std::basic_string< CharT, Traits, Allocator > to_string(uuid const &id)
Definition: uuid.h:581
std::string website
Definition: project_info.h:47
std::string startup_movie
Definition: project_info.h:67
Definition: project_info.h:54
std::string GetChildNodeValue(rapidxml::xml_node<> *parent_node, std::string child_node_name, std::string _default="", bool treat_as_directory=false)
Retrieves the value of a child node within an XML node.
Definition: project_info.cpp:22
std::string title
Definition: project_info.h:41
std::string copyright
Definition: project_info.h:46
std::string fonts_dir
Definition: project_info.h:75
xml_attribute< Ch > * first_attribute(const Ch *name=0, std::size_t name_size=0, bool case_sensitive=true) const
Gets first attribute of node, optionally matching attribute name.
Definition: rapidxml.hpp:1025
int format_version
Definition: project_info.h:37
std::string codename
Definition: project_info.h:42
@ Warning
Indicates a warning message. Not something critical, but something that could cause unexpected behavi...
std::string file_path
Definition: project_info.h:36
#define STRINGS_API
Definition: project_info.h:8
void parse(Ch *text)
Parses zero-terminated XML string according to given flags.
Definition: rapidxml.hpp:1381
std::string mods_info_url
Definition: project_info.h:57