 |
Blamite Game Engine - Strings
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
47 std::string
copyright =
"Copyright (c) Elaztek Studios 2013-2023";
48 std::string
website =
"https://elaztek.com/";
std::string affiliates
Definition: project_info.h:46
#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:53
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:81
std::string update_info_url
Definition: project_info.h:57
std::string publisher
Definition: project_info.h:44
std::string movies_dir
Definition: project_info.h:72
std::string project_root
Definition: project_info.h:38
bool allow_user_tag_overrides
Definition: project_info.h:78
STRINGS_API void LogEvent(BlamBasicLogMessage message)
Logs an event to the logger.
Definition: logger.cpp:41
std::string developer
Definition: project_info.h:45
#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:67
Definition: project_info.h:40
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:75
STRINGS_API std::string GetAbsolutePathFromRelative(std::string relative_path)
Converts a relative path to an absolute file path.
Definition: io.cpp:389
std::string tags_dir
Definition: project_info.h:71
STRINGS_API bool SaveProjectInfo(BlamProjectInfo project)
Saves a project information file to disk.
Definition: project_info.cpp:191
network_settings_data network_settings
Definition: project_info.h:62
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:59
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:87
std::string default_cache
Definition: project_info.h:66
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:49
std::string cache_dir
Definition: project_info.h:74
std::string icon
Definition: project_info.h:50
This class represents root of the DOM hierarchy.
Definition: rapidxml.hpp:139
Definition: project_info.h:64
Class representing a node of XML document.
Definition: rapidxml.hpp:137
std::string data_dir
Definition: project_info.h:73
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
STRINGS_API std::string GetContainingFolder(std::string path)
Retrieves the containing folder of a given file or directory.
Definition: io.cpp:341
std::string content_root
Definition: project_info.h:70
std::basic_string< CharT, Traits, Allocator > to_string(uuid const &id)
Definition: uuid.h:581
std::string website
Definition: project_info.h:48
std::string startup_movie
Definition: project_info.h:68
Definition: project_info.h:55
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:42
std::string copyright
Definition: project_info.h:47
std::string fonts_dir
Definition: project_info.h:76
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:43
@ 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:58