Ejemplo n.º 1
0
        protected override void DrawMuseumExhibit(SpriteBatch spriteBatch,
                                                  int distance, Rectangle destRect, int val)
        {
            var exhibit = MuseumExtender.GetExhibitByTile(val);

            if (distance == 1)
            {
                DrawExhibitText(spriteBatch, destRect, exhibit);
            }
        }
Ejemplo n.º 2
0
        protected override Color ExhibitColor(int val)
        {
            var exhibit = MuseumExtender.GetExhibitByTile(val);

            if (exhibit == null)
            {
                return(base.ExhibitColor(val));
            }

            return(exhibit.ExhibitColor);
        }