stones.py sort-of works
parent
61c5e36537
commit
c0ae0840db
@ -1,11 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import pydfhack
|
||||
DF = pydfhack.API("Memory.xml")
|
||||
DF = pydfhack._API("Memory.xml")
|
||||
|
||||
if DF.Attach():
|
||||
success,stones = DF.ReadStoneMatgloss()
|
||||
if success:
|
||||
print "Dumping all stone"
|
||||
for matgloss in stones:
|
||||
print "ID %s, name %s" % (matgloss.id, matgloss.name)
|
||||
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()
|
||||
|
Loading…
Reference in New Issue