Ejemplo n.º 1
0
def testExport():
    level = alpha_test_level()

    for size in [(15, 15, 15),
                 (16, 16, 16),
                 (15, 16, 16),
                 (15, 16, 15),
                 ]:
        schem = extractSchematicFrom(level, BoundingBox((0, 0, 0), size))
        schem = TempLevel("schem", createFunc=lambda f: schem.saveToFile(f))
        assert (schem.Blocks > 255).any()
Ejemplo n.º 2
0
def testExport():
    level = alpha_test_level()

    for size in [
        (15, 15, 15),
        (16, 16, 16),
        (15, 16, 16),
        (15, 16, 15),
    ]:
        schem = extractSchematicFrom(level, BoundingBox((0, 0, 0), size))
        schem = TempLevel("schem", createFunc=lambda f: schem.saveToFile(f))
        assert (schem.Blocks > 255).any()
Ejemplo n.º 3
0
def test_extid_extract(tmpdir, extid_pc_world):

    for size in [(15, 15, 15),
                 (16, 16, 16),
                 (15, 16, 16),
                 (15, 16, 15),
                 ]:
        schem = extractSchematicFrom(extid_pc_world.getDimension(), BoundingBox((0, 0, 0), size))
        filename = tmpdir.join("extid_extract_%s_%s_%s" % size).strpath
        schem.saveToFile(filename)
        del schem
        schem = WorldEditor(filename)
        assert (schem.adapter.Blocks > 255).any()
Ejemplo n.º 4
0
def test_extid_extract(tmpdir, extid_pc_world):

    for size in [
        (15, 15, 15),
        (16, 16, 16),
        (15, 16, 16),
        (15, 16, 15),
    ]:
        schem = extractSchematicFrom(extid_pc_world.getDimension(),
                                     BoundingBox((0, 0, 0), size))
        filename = tmpdir.join("extid_extract_%s_%s_%s" % size).strpath
        schem.saveToFile(filename)
        del schem
        schem = WorldEditor(filename)
        assert (schem.adapter.Blocks > 255).any()
Ejemplo n.º 5
0
def testExportImport(any_world):
    dim = any_world.getDimension()

    schem = extractSchematicFrom(dim, dim.bounds)
    schemDim = schem.getDimension()
    dim.copyBlocks(schemDim, schemDim.bounds, (0, 0, 0))
Ejemplo n.º 6
0
def testExportImport(world):
    dim = world.getDimension()

    schem = extractSchematicFrom(dim, dim.bounds)
    schemDim = schem.getDimension()
    dim.copyBlocks(schemDim, schemDim.bounds, (0, 0, 0))
Ejemplo n.º 7
0
def timeExport():
    global schem
    schem = extractSchematicFrom(level, level.bounds)
Ejemplo n.º 8
0
def timeExport():
    global schem
    schem = extractSchematicFrom(level, level.bounds)