From 5ce44119bb1d124d74a0550377c5e8abd3f71fd6 Mon Sep 17 00:00:00 2001 From: doomchild Date: Thu, 15 Apr 2010 10:03:07 -0500 Subject: [PATCH] removed some unneeded types and imports --- .../python/{pydftypes.py => pydfhackflags.py} | 45 +------------------ 1 file changed, 1 insertion(+), 44 deletions(-) rename dfhack/python/{pydftypes.py => pydfhackflags.py} (88%) diff --git a/dfhack/python/pydftypes.py b/dfhack/python/pydfhackflags.py similarity index 88% rename from dfhack/python/pydftypes.py rename to dfhack/python/pydfhackflags.py index 3061277bf..5bcae4e9c 100644 --- a/dfhack/python/pydftypes.py +++ b/dfhack/python/pydfhackflags.py @@ -1,48 +1,5 @@ # -*- coding: utf-8 -*- -from pydfhack import * -from ctypes import * - -class DFAPI(API): - def Read_Designations(self, x, y, z): - temp = API.Read_Designations(self, x, y, z) - - d_list = [] - - for i in temp: - d = [] - - for j in i: - d.append(DesignationFlags(j)) - - d_list.append(d) - - return d_list - def Write_Designations(self, x, y, z, d_list): - temp = [] - - for i in d_list: - t = [] - - for j in i: - t.append(j.whole) - - temp.append(t) - - API.Write_Designations(self, x, y, z, temp) - def Read_Occupancy(self, x, y, z): - temp = API.Read_Occupancy(self, x, y, z) - - o_list = [] - - for i in temp: - o = [] - - for j in i: - o.append(OccupancyFlags(j)) - - o_list.append(o) - - return o_list +from ctypes import Structure, Union class DesignationStruct(Structure): _fields_ = [("flow_size", c_uint, 3),