added grass vein and world construction types

develop
doomchild 2011-03-01 14:39:33 -06:00
parent 06ae98c9dd
commit 42670c798b
1 changed files with 32 additions and 0 deletions

@ -114,6 +114,38 @@ def _alloc_spattervein_buffer_callback(ptr, count):
_spattervein_functype = CFUNCTYPE(c_int, POINTER(SpatterVein), c_uint)
libdfhack.alloc_spatter_buffer_callback = _spattervein_functype(_alloc_spattervein_buffer_callback)
class GrassVein(Structure):
_fields_ = [("vtable", c_uint),
("material", c_uint),
("intensity", ((c_ubyte * 16) * 16)),
("address_of", c_uint)]
def _alloc_grassvein_buffer_callback(ptr, count):
allocated = _allocate_array(GrassVein, count)
ptr = addressof(allocated[0])
return 1
_grassvein_functype = CFUNCTYPE(c_int, POINTER(GrassVein), c_uint)
libdfhack.alloc_grassvein_buffer_callback = _grassvein_functype(_alloc_grassvein_buffer_callback)
class WorldConstruction(Structure):
_fields_ = [("vtable", c_uint),
("material", c_uint),
("assignment", c_ushort * 16),
("address_of", c_uint)]
def _alloc_worldconstruction_buffer_callback(ptr, count):
allocated = _allocate_array(WorldConstruction, count)
ptr = addressof(allocated[0])
return 1
_worldconstruction_functype = CFUNCTYPE(c_int, POINTER(WorldConstruction), c_uint)
libdfhack.alloc_worldconstruction_buffer_callback = _worldconstruction_functype(_alloc_worldconstructrion_buffer_callback)
class MapBlock40d(Structure):
_fields_ = [("tiletypes", TileTypes40d),
("designation", Designations40d),