|
|
@ -1,6 +1,5 @@
|
|
|
|
import pydfhack, os
|
|
|
|
import _pydfhack, os
|
|
|
|
|
|
|
|
class API(_pydfhack._API):
|
|
|
|
class API(pydfhack._API):
|
|
|
|
|
|
|
|
for file in ["Memory.xml", os.path.join("..","..","output","Memory.xml")]:
|
|
|
|
for file in ["Memory.xml", os.path.join("..","..","output","Memory.xml")]:
|
|
|
|
if os.path.isfile(file):
|
|
|
|
if os.path.isfile(file):
|
|
|
|
datafile = file
|
|
|
|
datafile = file
|
|
|
@ -9,20 +8,20 @@ class API(pydfhack._API):
|
|
|
|
raise ImportError, "Memory.xml not found."
|
|
|
|
raise ImportError, "Memory.xml not found."
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
pydfhack._API.__init__(self, API.datafile)
|
|
|
|
_pydfhack._API.__init__(self, API.datafile)
|
|
|
|
|
|
|
|
|
|
|
|
self._map_mgr_type = Map
|
|
|
|
self._map_mgr_type = Map
|
|
|
|
self._vegetation_mgr_type = Vegetation
|
|
|
|
self._vegetation_mgr_type = Vegetation
|
|
|
|
self._gui_mgr_type = GUI
|
|
|
|
self._gui_mgr_type = GUI
|
|
|
|
|
|
|
|
|
|
|
|
class Map(pydfhack._MapManager):
|
|
|
|
class Map(_pydfhack._MapManager):
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
pydfhack._MapManager.__init__(self, args, kwds)
|
|
|
|
_pydfhack._MapManager.__init__(self, args, kwds)
|
|
|
|
|
|
|
|
|
|
|
|
class Vegetation(pydfhack._VegetationManager):
|
|
|
|
class Vegetation(_pydfhack._VegetationManager):
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
pydfhack._VegetationManager.__init__(self, args, kwds)
|
|
|
|
_pydfhack._VegetationManager.__init__(self, args, kwds)
|
|
|
|
|
|
|
|
|
|
|
|
class GUI(pydfhack._GUIManager):
|
|
|
|
class GUI(_pydfhack._GUIManager):
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
def __init__(self, *args, **kwds):
|
|
|
|
pydfhack._GUIManager.__init__(self, args, kwds)
|
|
|
|
_pydfhack._GUIManager.__init__(self, args, kwds)
|
|
|
|