|
|
@ -10,6 +10,8 @@ from .construction import Construction
|
|
|
|
from .vegetation import Vegetation
|
|
|
|
from .vegetation import Vegetation
|
|
|
|
from .gui import GUI
|
|
|
|
from .gui import GUI
|
|
|
|
class API(_pydfhack._API):
|
|
|
|
class API(_pydfhack._API):
|
|
|
|
|
|
|
|
started = None
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
@ -40,3 +42,11 @@ class API(_pydfhack._API):
|
|
|
|
self._construction_mgr_type = Construction
|
|
|
|
self._construction_mgr_type = Construction
|
|
|
|
self._vegetation_mgr_type = Vegetation
|
|
|
|
self._vegetation_mgr_type = Vegetation
|
|
|
|
self._gui_mgr_type = GUI
|
|
|
|
self._gui_mgr_type = GUI
|
|
|
|
|
|
|
|
self.started = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def Resume(self):
|
|
|
|
|
|
|
|
# Explicitly Finish() all started modules
|
|
|
|
|
|
|
|
for m in self.started[:]:
|
|
|
|
|
|
|
|
m.Finish()
|
|
|
|
|
|
|
|
self.started = []
|
|
|
|
|
|
|
|
_pydfhack._API.Resume(self)
|
|
|
|