enum GameState { Credits , Game , Combat , Event , Cavalcade , Alchemy , Hunting } let gameState = GameState . Credits ; const SetGameState = ( state , Gui ) => { gameState = state ; Gui . SetGameState ( state ) ; } ; let online = false ; export function isOnline ( ) { return online ; } export function setOnline ( val ) { online = val ; } export { GameState , gameState , SetGameState } ;