dfhack/output/stones.py

12 lines
280 B
Python

2010-02-27 20:11:06 -07:00
# -*- coding: utf-8 -*-
2010-05-05 03:33:44 -06:00
from pydfhack import API
DF = 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()