Beispiel #1
0
 def build(self, type, x, y, size):
     self.validify()
     if not isinstance(type, Type):
         raise TypeError('type should be of [Type]')
     type.validify()
     return library.botBuild(self.ptr, type.ptr, x, y, size)
Beispiel #2
0
 def build(self, type, x, y, size):
   self.validify()
   if not isinstance(type, Type):
     raise TypeError('type should be of [Type]')
   type.validify()
   return library.botBuild(self.ptr, type.ptr, x, y, size)
Beispiel #3
0
 def build(self, type, x, y, size):
   self.validify()
   if type.__class__ not in [Type]:
     raise TypeError('type should be of [Type]')
   type.validify()
   return library.botBuild(self.ptr, type.ptr, x, y, size)