public PartialMap(string path, TextureManager textures) : base() { this.textures = textures; mapfile = new PartialFile(path); Load(mapfile.LoadBlock(), textures); ParseBlocks(); }
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"); }