game.load
Loads a game into the editor.
Prototype
hGame = game.load ( sGameName )
Description
Games always load with the "current profile" set.
Parameters
sGameName - game name string
Return values
hGame - game handle
Sample
function onStageViewInit ( hView, hComponent, hFile ) if ( hFile ) then if ( project.getFileType( hFile ) == project.kFileTypeGame ) then local hGame = game.load ( project.getFileName ( hFile ) ) if ( hGame ) then -- do stuff
Available since ShiVa 2.0