dfhack/output/stones.py

12 lines
281 B
Python

2010-02-27 20:11:06 -07:00
# -*- coding: utf-8 -*-
import pydfhack
2010-04-28 15:48:50 -06:00
DF = pydfhack._API("Memory.xml")
2010-02-26 14:23:43 -07:00
if DF.Attach():
2010-04-28 15:48:50 -06:00
Mats = DF.materials
stones = Mats.Read_Inorganic_Materials()
print "Dumping all stone"
for matgloss in stones:
print "ID %s, name %s" % (matgloss.id, matgloss.name)
DF.Detach()