Пример #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            Content.RootDirectory = "Content";

            // Charge les ressources (doit être fait après l'appel à BindGraphicsClients()).$
            Ressources.LoadRessources(GraphicsDevice, Content);
            Ressources.ScreenSize = GetScreenSize();

            m_batch = new SpriteBatch(Ressources.Device);
            m_renderer.ServerRemote = new ServerStateSnapshot(m_server);
            m_renderer.Viewport     = new Rectangle(0, 0, (int)GameClient.GetScreenSize().X, (int)GameClient.GetScreenSize().Y);
            m_renderer.LoadContent();
            m_controler.LoadContent();
        }