private void LoadGraphicsData(GraphicsData data)
 {
     foreach (BinaryTexture texture in data.AnimationTextures)
     {
         Game.gameGraphics.textureManager.ClearAllTextures();
         Game.gameGraphics.AddTexture(texture.Name,TextureManager.ConvertDataToTexture(texture, Game.gameGraphics.GraphicsManager.GraphicsDevice));
         binaryTextures.Add(texture);
     }
     listBox_Animations.Items.Clear();
     foreach (IDrawn drawObject in data.DrawnObjects)
     {
         switch (drawObject.DrawnType)
         {
             case DrawnType.Animation:
                 Game.gameGraphics.ClearAnimationList();
                 Game.gameGraphics.AddDrawable(drawObject);
                 listBox_Animations.Items.Add(drawObject.Name);
                 break;
         }
     }
 }
Exemple #2
0
 public GameData(GraphicsData graphicsData)
 {
     GraphicsData = graphicsData;
 }