예제 #1
0
 public virtual void RegisterOnGameRecordList(DisplayGames callback)
 {
     client.RegisterHandler(
         GameRecordListMessage.Type,
         delegate(NetworkMessage netMsg) {
         GameRecordListMessage msg =
             netMsg.ReadMessage <GameRecordListMessage>();
         callback(msg.Games);
     }
         );
 }
예제 #2
0
        //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);
        }