private void CreateAreaBackgrounds() { _areas = new Dictionary <string, AnimatedBackground>(); foreach (XElement a in Data.Profile.SimpleAreaData) { if (!Unranked_Areas.Contains(a.Attribute("name").Value.ToLower())) { string area = a.Attribute("name").Value; AreaDataContainer areaData = Profile.GetDataForNamedArea(area); _areas.Add(area, AnimatedBackground.Create(areaData.SelectionTexture, new int[] { 0, 1, 2 })); } } }
public void CreateBackgroundForScene(string reference, int[] componentSequence) { _animBackground = AnimatedBackground.Create(reference, componentSequence); RegisterGameObject(_animBackground); }