game.getName

Return the name of the game.

Prototype

  1. sGameName = game.getName ( hGame )

Description

Return the name of the game.


Parameters

hGame - valid Game handle


Return values

sGameName - game name string


Sample

  1. if ( utils.getVariableType ( hFile ) == utils.kVariableTypeGame ) then
  2. sGameName = game.getName ( hFile )
  3. -- etc.

Available since ShiVa 2.0