Ejemplo n.º 1
0
        protected override void OnInitialized(EventArgs e)
        {
            base.OnInitialized(e);

            #if asd
            Drawing drawing;

            drawing = Test('☻');

            list.Items.Add(new DrawingImage(drawing));

            for (int i = 33; i < 200; ++i)
            {
                char c = (char)i;
                drawing = Test(c);
                if (drawing == null)
                    continue;
                list.Items.Add(new DrawingImage(drawing));
            }

            #else
            var tileset = new TileSet("DefaultTileSet.xaml");
            tileset.Load();

            foreach (SymbolID s in Enum.GetValues(typeof(SymbolID)))
            {
                if (s == SymbolID.Undefined)
                    continue;

                var drawing = tileset.GetDetailedDrawing(s, Dwarrowdelf.GameColor.None);

                list.Items.Add(new DrawingImage(drawing));
            }
            #endif
        }
Ejemplo n.º 2
0
 static TileSet()
 {
     s_defaultTileSet = new TileSet("DefaultTileSet");
     s_defaultTileSet.Load();
 }
Ejemplo n.º 3
0
 public CachedTileSet(TileSet tileSet)
 {
     m_tileSet = tileSet;
 }