public virtual void RegisterOnGameRecordList(DisplayGames callback) { client.RegisterHandler( GameRecordListMessage.Type, delegate(NetworkMessage netMsg) { GameRecordListMessage msg = netMsg.ReadMessage <GameRecordListMessage>(); callback(msg.Games); } ); }
//Initialization and content loading public static void Initialize() { //Creates folder structure if nescessary CreateFolderStructure(); frameCounter = new FrameCounter(); random = new Random(); TextureHandler.Initialize(); InputHandler.Initialize(); FontHandler.Initialize(); displayGames = new DisplayGames(); playerInformationHandler = PlayerInformationHandler.Initialize(); Tick = 0; MouseHandler.Initialize(); store = new Store(playerInformationHandler, (int)States.Store); }