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; } } }
public GameData(GraphicsData graphicsData) { GraphicsData = graphicsData; }