BSKAddUnitDef
Module: BSKUnitDefinition
BSKUnitDefinition* BSKAddUnitDef( BSKUnitDefinition* list,
BSKUI32 id,
BSKFLOAT units,
BSKUI32 refUnit );
Inputs:
- list - the list to add the new definition to.
- id - the identifier of the new unit.
- units - if 'refUnit' is 0, this should be 1, otherwise, it is the
number of 'refUnit' units that this new unit is equivalent to.
- refUnit - either 0 (if this unit is independant of other units), or
the id of an existing unit, to which the new unit is relative.
Returns: The new list of unit definitions that includes the new
definition.
Description:
Adds the given unit definition (id, units, and refUnit) to the
list. Although there is no checking done to ensure this, refUnit
should be an identifier of an existing unit.
Return to the API
Return to the function listing
Last updated on 9 Feb 2001 by Jamis Buck (minam@rpgplanet.com)