2010-02-26 14:23:43 -07:00
|
|
|
import dfhack
|
|
|
|
x = dfhack.API("Memory.xml")
|
|
|
|
y = dfhack.MatglossVector()
|
|
|
|
|
|
|
|
if x.Attach():
|
|
|
|
if x.ReadStoneMatgloss(y):
|
|
|
|
print "Dumping all stone"
|
|
|
|
for matgloss in y:
|
|
|
|
print "ID %s, name %s" % (matgloss.id, matgloss.name)
|
2010-02-27 05:24:32 -07:00
|
|
|
x.Detach()
|