Nuclide
Software Development Kit for id Technology (BETA)
ammoAPI_t Struct Reference

Public Member Functions

string NameForNum (int)
 Returns the name of the specified ammo type. More...
 
int NumForName (string)
 Returns the ammo id of a given name of ammo. More...
 
int MaxForName (string)
 Returns the max ammo given name of ammo. More...
 
int MaxForNum (int)
 Returns the max ammo given name of ammo. More...
 

Member Function Documentation

◆ MaxForName()

int ammoAPI_t::MaxForName ( string  )

Returns the max ammo given name of ammo.

Returns 0 when invalid.

◆ MaxForNum()

int ammoAPI_t::MaxForNum ( int  )

Returns the max ammo given name of ammo.

Returns 0 when invalid.

◆ NameForNum()

string ammoAPI_t::NameForNum ( int  )

Returns the name of the specified ammo type.

Returns NULL when invalid.

◆ NumForName()

int ammoAPI_t::NumForName ( string  )

Returns the ammo id of a given name of ammo.

Return -1 when invalid.


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