예제 #1
0
 public PartialMap(string path, TextureManager textures)
     : base()
 {
     this.textures = textures;
     mapfile       = new PartialFile(path);
     Load(mapfile.LoadBlock(), textures);
     ParseBlocks();
 }
예제 #2
0
        public void LoadBlock(string name)
        {
            var then = DateTime.Now;
            var mem  = mapfile.LoadBlock(name);

            if (mem == null)
            {
                throw new IOException("Could not get Block Data");
            }
            Load(mem, this.textures);
            Console.WriteLine("Loaded Block " + name + " in " + (DateTime.Now - then).TotalMilliseconds + "ms");
        }