 |
Blamite Game Engine - Blam (Core)
|
Namespace surrounding all major engine components.
Definition: blam_api.h:17
BLAM command_object CreateCommandFromFile(std::string filename)
Definition: command_script.cpp:84
HSC bool * GetGlobalAsBoolean(std::string name)
Retrieves a global's value as a boolean.
Definition: script_globals.cpp:337
std::string description
Definition: haloscript.h:31
HSC std::string GetGvarTypeLabel(GvarType type)
Retrieves a string representation of a global's type, for use in UI.
Definition: script_globals.cpp:40
long long_value
The long value of the global.
Definition: haloscript.h:116
Definition: haloscript.h:347
@ InvalidType
The provided value was of an invalid type.
Definition: haloscript.h:68
std::vector< std::string > arguments
Definition: haloscript.h:369
BlamColor color_value
The color value of the global.
Definition: haloscript.h:119
@ Color
Represents a BlamColor. See BlamColor for details.
Definition: haloscript.h:89
std::string name
Definition: haloscript.h:358
bool boolean_value
The boolean value of the global.
Definition: haloscript.h:114
HSC float * GetGlobalAsFloat(std::string name)
Retrieves a global's value as a float.
Definition: script_globals.cpp:403
HSC cmd_script_object parse_cmd_script(std::string filename)
Definition: blamscript.cpp:75
Definition: haloscript.h:356
std::string name
Definition: haloscript.h:30
HSC std::vector< std::string > getCommandsCSC()
Definition: command_script.cpp:20
GvarType type
The type of the global.
Definition: haloscript.h:104
std::vector< script_gvar > global_vars
Definition: haloscript.h:377
HSC long * GetGlobalAsLong(std::string name)
Retrieves a global's value as a long.
Definition: script_globals.cpp:377
Legacy class representing a CommandScript command.
Definition: haloscript.h:27
HSC void RegisterGvar(ScriptGlobal var)
Registers a new engine global.
Definition: script_globals.cpp:65
@ Int
Represents an int.
Definition: haloscript.h:87
@ UnknownGlobal
The specified global does not exist.
Definition: haloscript.h:69
std::string action
Definition: haloscript.h:32
std::string name
The name of the global.
Definition: haloscript.h:105
@ InvalidArgs
The provided arguments were invalid.
Definition: haloscript.h:71
@ Boolean
Represents a boolean. Can be true or false.
Definition: haloscript.h:81
HSC std::map< std::string, ScriptGlobal > * GetGlobalsList()
Retrieves the list of loaded globals.
Definition: script_globals.cpp:22
Definition: haloscript.h:375
HSC BlamColor * GetGlobalAsColor(std::string name)
Retrieves a global's value as a BlamColor.
Definition: script_globals.cpp:416
std::vector< std::string > arguments
Definition: haloscript.h:350
@ Object
Unknown. Referenced within the hs_doc from Halo 2 Sapien.
Definition: haloscript.h:85
std::string type
Definition: haloscript.h:349
HSC std::vector< cmd_script_object > get_hsc_data()
Definition: blamscript.cpp:444
BLAM std::string get_csc_cmd_name(std::string filename)
Definition: command_script.cpp:172
HSC GvarUpdateResult UpdateGlobal(std::string name, std::string new_value)
Updates the value of a String global.
Definition: script_globals.cpp:576
bool read_only
Whether or not the global is protected from modification.
Definition: haloscript.h:108
Definition: haloscript.h:56
HSC bool LoadGlobalsFromFile()
Loads any globals from GVARS_FILE.
Definition: script_globals.cpp:206
@ GlobalIsProtected
The specified global is protected and cannot be modified during runtime.
Definition: haloscript.h:73
std::string name
Definition: haloscript.h:368
@ OutOfBounds
The provided value was too small or too large for the globals' data type.
Definition: haloscript.h:72
HSC int * GetGlobalAsInteger(std::string name)
Retrieves a global's value as an int.
Definition: script_globals.cpp:390
HSC std::vector< std::string > get_csc_data()
Definition: command_script.cpp:443
float float_value
The float value of the global.
Definition: haloscript.h:118
HSC std::vector< cmd_script_object > getCommandsHSC()
Definition: blamscript.cpp:20
std::string value_raw
The raw value of the global as a string.
Definition: haloscript.h:107
@ Float
Represents a float.
Definition: haloscript.h:88
HSC void InitCSC()
Definition: command_script.cpp:14
@ Long
Represents a long.
Definition: haloscript.h:84
Definition: haloscript.h:366
HSC ScriptGlobal * GetGlobal(std::string name)
Retrieves a global with the specified ID.
Definition: script_globals.cpp:193
HSC GvarUpdateResult UpdateGlobalWrap(std::string name, std::string new_value)
Updates a global's raw value.
Definition: script_globals.cpp:433
Structure containing data for a game engine global.
Definition: haloscript.h:102
#define BLAM
Definition: haloscript.h:13
HSC std::string * GetGlobalAsString(std::string name)
Retrieves a global's value as a string.
Definition: script_globals.cpp:350
std::vector< script_action > actions
Definition: haloscript.h:378
HSC short * GetGlobalAsShort(std::string name)
Retrieves a global's value as a short.
Definition: script_globals.cpp:364
std::string description
Definition: haloscript.h:359
HSC void InitHSC()
Definition: blamscript.cpp:14
@ Real
Unknown. Referenced within the hs_doc from Halo 2 Sapien.
Definition: haloscript.h:82
BLAM std::string csc_var_process(std::string const &s)
Definition: command_script.cpp:448
HSC std::string get_cmd_name(std::string filename)
Definition: blamscript.cpp:387
HSC bool GlobalExists(std::string id)
Determines whether or not a global exists.
Definition: script_globals.cpp:27
std::vector< script_action > actions
Definition: haloscript.h:360
Structure representing a color.
Definition: colors.h:18
std::string info
An optional description of the global.
Definition: haloscript.h:106
int int_value
The int value of the global.
Definition: haloscript.h:117
@ String
Represents a std::string.
Definition: haloscript.h:86
#define HSC
Definition: haloscript.h:17
@ Ok
The global was updated successfully.
Definition: haloscript.h:70
GvarUpdateResult
Enumerator for the result of a global update attempt.
Definition: haloscript.h:66
short short_value
The short value of the global.
Definition: haloscript.h:115
@ Short
Represents a short.
Definition: haloscript.h:83
GvarType
Enumerator for the type of global variable.
Definition: haloscript.h:79