Dwarrowdelf.Client.TileSetLoader.Load C# (CSharp) Method

Load() public method

public Load ( ) : void
return void
        public void Load()
        {
            m_drawingResources = LoadDrawingResource("Vectors.xaml");

            m_bitmap = LoadBitmapResource("Bitmaps.png");

            m_bitmapSizes = m_symbolSet.BitmapSizes.Split(',').Select(s => int.Parse(s)).ToArray();
        }

Usage Example

Example #1
0
        static int Main(string[] args)
        {
            if (args.Length != 2)
            {
                Console.WriteLine("Bad args");
                return(1);
            }

            if (Directory.Exists(args[0]) == false)
            {
                Console.WriteLine("Source dir {0} doesn't exist", args[0]);
                return(1);
            }

            if (Directory.Exists(args[1]) == false)
            {
                Console.WriteLine("Source dir {0} doesn't exist", args[1]);
                return(1);
            }

            string srcPath = args[0];
            string dstPath = args[1];

            var loader = new TileSetLoader(srcPath);

            loader.Load();

            CreatePng(loader, dstPath);

            using (var device = GraphicsDevice.New())
                CreateDds(device, loader, dstPath);

            return(0);
        }
All Usage Examples Of Dwarrowdelf.Client.TileSetLoader::Load