Ejemplo n.º 1
0
 def to_stream(self, chunk_stream):
     stream_pack(chunk_stream, '<H', self.height)
     stream_pack_array(chunk_stream, '<H', self.locations)
     stream_pack_array(chunk_stream, '<B', self.widths)
Ejemplo n.º 2
0
 def to_stream(self, stream):
     stream_pack(stream, '<HH', self.left, self.right)
     stream_pack_array(stream, '<H', self.offsets)
Ejemplo n.º 3
0
Archivo: game.py Proyecto: TexZK/pywolf
 def to_stream(self, stream):
     stream_pack_array(stream, '<L', self.plane_offsets)
     stream_pack_array(stream, '<H', self.plane_sizes)
     stream_pack(stream, '<HH', *self.dimensions)
     stream_pack(stream, '<16s', self.name.encode('ascii'))
Ejemplo n.º 4
0
 def to_stream(self, stream):
     stream_pack_array(stream, '<L', self.plane_offsets)
     stream_pack_array(stream, '<H', self.plane_sizes)
     stream_pack(stream, '<HH', *self.size)
     stream_pack(stream, '<16s', self.name.encode('ascii'))
Ejemplo n.º 5
0
 def to_stream(self, chunk_stream):
     stream_pack(chunk_stream, '<H', self.height)
     stream_pack_array(chunk_stream, '<H', self.locations)
     stream_pack_array(chunk_stream, '<B', self.widths)
Ejemplo n.º 6
0
 def to_stream(self, stream):
     stream_pack(stream, '<HH', self.left, self.right)
     stream_pack_array(stream, '<H', self.offsets)