 |
Blamite Game Engine - blam!
00398.09.22.23.2015.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
7 #include <Strings/components/resources/color/BlamColor.h>
8 #include <Strings/components/utils/string/string.h>
10 #define GVARS_FILE "globals.xml"
Namespace surrounding all major engine components.
Definition: blam_api.h:28
BLAM void RegisterGvar(EngineGlobal var)
Registers a new engine global.
Definition: globals.cpp:65
BLAM EngineGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: globals.cpp:193
BLAM bool GlobalExists(std::string id)
Determines whether or not a global exists.
Definition: globals.cpp:27
float float_value
The float value of the global.
Definition: globals.h:80
std::string info
An optional description of the global.
Definition: globals.h:68
@ Int
Represents an int.
Definition: globals.h:49
BlamColor color_value
The color value of the global.
Definition: globals.h:81
@ UnknownGlobal
The specified global does not exist.
Definition: globals.h:31
@ Long
Represents a long.
Definition: globals.h:46
@ GlobalIsProtected
The specified global is protected and cannot be modified during runtime.
Definition: globals.h:35
BLAM bool LoadGlobalsFromFile()
Loads any globals from GVARS_FILE.
Definition: globals.cpp:206
BLAM float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: globals.cpp:407
@ InvalidArgs
The provided arguments were invalid.
Definition: globals.h:33
@ Real
Same as Float.
Definition: globals.h:44
BLAM GvarUpdateResult UpdateGlobalWrap(std::string name, std::string new_value)
Updates a global's raw value.
Definition: globals.cpp:435
bool read_only
Whether or not the global is protected from modification.
Definition: globals.h:70
std::string name
The name of the global.
Definition: globals.h:67
GvarType
Enumerator for the type of global variable.
Definition: globals.h:41
short short_value
The short value of the global.
Definition: globals.h:77
BLAM BlamColor * GetGlobalAsColor(std::string name)
Retrieves a global's value as a BlamColor.
Definition: globals.cpp:419
@ String
Represents a std::string.
Definition: globals.h:48
Structure containing data for a game engine global.
Definition: globals.h:64
@ Float
Represents a float.
Definition: globals.h:50
long long_value
The long value of the global.
Definition: globals.h:78
GvarUpdateResult
Enumerator for the result of a global update attempt.
Definition: globals.h:28
BLAM short * GetGlobalAsShort(std::string name)
Retrieves a global's value as a short.
Definition: globals.cpp:371
@ InvalidType
The provided value was of an invalid type.
Definition: globals.h:30
@ Object
Unknown. Referenced within the hs_doc from Halo 2 Sapien.
Definition: globals.h:47
@ Short
Represents a short.
Definition: globals.h:45
int int_value
The int value of the global.
Definition: globals.h:79
BLAM std::map< std::string, EngineGlobal > * GetGlobalsList()
Retrieves the list of loaded globals.
Definition: globals.cpp:22
@ OutOfBounds
The provided value was too small or too large for the globals' data type.
Definition: globals.h:34
BLAM long * GetGlobalAsLong(std::string name)
Retrieves a global's value as a long.
Definition: globals.cpp:383
@ Color
Represents a BlamColor. See #BlamColor for details.
Definition: globals.h:51
#define BLAM
Definition: globals.h:13
@ Boolean
Represents a boolean. Can be true or false.
Definition: globals.h:43
BLAM std::string * GetGlobalAsString(std::string name)
Retrieves a global's value as a string.
Definition: globals.cpp:359
std::string value_raw
The raw value of the global as a string.
Definition: globals.h:69
GvarType type
The type of the global.
Definition: globals.h:66
@ Ok
The global was updated successfully.
Definition: globals.h:32
BLAM bool * GetGlobalAsBoolean(std::string name)
Retrieves a global's value as a boolean.
Definition: globals.cpp:347
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting changing font name
Definition: ARPHICPL.TXT:16
bool boolean_value
The boolean value of the global.
Definition: globals.h:76
BLAM GvarUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: globals.cpp:578
BLAM std::string GetGvarTypeLabel(GvarType type)
Retrieves a string representation of a global's type, for use in UI.
Definition: globals.cpp:40
BLAM int * GetGlobalAsInteger(std::string name)
Retrieves a global's value as an int.
Definition: globals.cpp:395