UFO: Alien Invasion
Loading...
Searching...
No Matches
components_t Struct Reference

The definition of a "components" entry (i.e. an assembly of several items) parsed from a ufo-file. More...

#include <cp_component.h>

Collaboration diagram for components_t:
Collaboration graph

Data Fields

char assemblyId [MAX_VAR]
const objDef_tassemblyItem
int time
int numItemtypes
const objDef_titems [MAX_COMP]
int itemAmount [MAX_COMP]
int itemAmount2 [MAX_COMP]

Detailed Description

The definition of a "components" entry (i.e. an assembly of several items) parsed from a ufo-file.

Definition at line 35 of file cp_component.h.

Field Documentation

◆ assemblyId

char components_t::assemblyId[MAX_VAR]

The name of the assembly (i.e. the UFO)

Definition at line 36 of file cp_component.h.

Referenced by COMP_GetComponentsByID(), and COMP_ParseComponents().

◆ assemblyItem

const objDef_t* components_t::assemblyItem

object (that is an assembly)

Definition at line 37 of file cp_component.h.

Referenced by COMP_ParseComponents().

◆ itemAmount

int components_t::itemAmount[MAX_COMP]

How many items of this type are in this assembly.

Definition at line 43 of file cp_component.h.

Referenced by COMP_ParseComponents().

◆ itemAmount2

int components_t::itemAmount2[MAX_COMP]

How many items of this type are in this assembly when it crashed (max-value?).

Definition at line 44 of file cp_component.h.

Referenced by COMP_ParseComponents().

◆ items

const objDef_t* components_t::items[MAX_COMP]

List of parts (item-types).

Definition at line 42 of file cp_component.h.

Referenced by COMP_ParseComponents().

◆ numItemtypes

int components_t::numItemtypes

Number of item-types listed below. (max is MAX_COMP)

Definition at line 41 of file cp_component.h.

Referenced by COMP_ParseComponents().

◆ time

int components_t::time

The time (in hours) until the disassembly is finished.

Definition at line 39 of file cp_component.h.

Referenced by COMP_ParseComponents().


The documentation for this struct was generated from the following file: