UFO: Alien Invasion
|
Aircraft and item components. More...
Go to the source code of this file.
Data Structures | |
struct | component_type_data_t |
Functions | |
void | COMP_ParseComponents (const char *name, const char **text) |
Parses one "components" entry in a .ufo file and writes it into the next free entry in xxxxxxxx (components_t). More... | |
components_t * | COMP_GetComponentsByID (const char *id) |
Returns components definition by ID. More... | |
Variables | |
static const value_t | components_type_vals [] |
Aircraft and item components.
Definition in file cp_component.cpp.
components_t* COMP_GetComponentsByID | ( | const char * | id | ) |
Returns components definition by ID.
[in] | id | assemblyId of the component definition. |
components_t
definition. Definition at line 145 of file cp_component.cpp.
References components_s::assemblyId, ccs, cgi, ccs_s::components, ERR_DROP, i, ccs_s::numComponents, and Q_streq.
Referenced by US_LoadXML(), and US_StoreUFO().
void COMP_ParseComponents | ( | const char * | name, |
const char ** | text | ||
) |
Parses one "components" entry in a .ufo file and writes it into the next free entry in xxxxxxxx (components_t).
[in] | name | The unique id of a components_t array entry. |
[in] | text | the whole following text after the "components" definition. |
Definition at line 50 of file cp_component.cpp.
References component_type_data_t::amount, components_s::assemblyId, components_s::assemblyItem, ccs, cgi, cgame_import_s::Com_EParse(), Com_Parse(), COMP_ITEMCOUNT_SCALED, ccs_s::components, DEBUG_CLIENT, ERR_DROP, component_type_data_t::id, INVSH_GetItemByID(), INVSH_GetItemByIDSilent(), components_s::itemAmount, components_s::itemAmount2, components_s::items, MAX_ASSEMBLIES, MAX_COMP, component_type_data_t::numbercrash, ccs_s::numComponents, components_s::numItemtypes, OBJZERO, Q_streq, Q_strncpyz(), and components_s::time.
Referenced by CP_ParseScriptFirst().
|
static |
components type values
Definition at line 37 of file cp_component.cpp.