2010-02-27 20:11:06 -07:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import pydfhack
|
2010-03-31 09:31:49 -06:00
|
|
|
DF = pydfhack.API("Memory.xml")
|
2010-02-26 14:23:43 -07:00
|
|
|
|
2010-03-31 09:31:49 -06:00
|
|
|
if DF.Attach():
|
|
|
|
success,stones = DF.ReadStoneMatgloss()
|
2010-02-27 17:25:04 -07:00
|
|
|
if success:
|
2010-02-26 14:23:43 -07:00
|
|
|
print "Dumping all stone"
|
2010-02-27 17:25:04 -07:00
|
|
|
for matgloss in stones:
|
2010-02-26 14:23:43 -07:00
|
|
|
print "ID %s, name %s" % (matgloss.id, matgloss.name)
|
2010-03-31 09:31:49 -06:00
|
|
|
DF.Detach()
|