Exemple #1
0
 public static void SetContentManager(ContentManager contentManager)
 {
     if (Content == null) //Prevent reassigning ContentHandler after initially set
     {
         Content = new ContentHandler(contentManager);
     }
 }
Exemple #2
0
        public override void LoadContent(ContentHandler content)
        {
            content.Load("Maps/Europe", "Europe");
            Textures = content.GetTextures();
            Settings settings = new Settings("Europe", 30, 1, 0.1f);

            GameManager.Setup(settings, Textures);
        }
Exemple #3
0
 public override void UnloadContent(ContentHandler content)
 {
     content.Unload();
 }
Exemple #4
0
 public abstract void UnloadContent(ContentHandler content);