def read(io_stream):
     return AnimationHeader(
         version=Version.read(io_stream),
         name=read_fixed_string(io_stream),
         hierarchy_name=read_fixed_string(io_stream),
         num_frames=read_ulong(io_stream),
         frame_rate=read_ulong(io_stream))
示例#2
0
 def read(io_stream):
     return CompressedAnimationHeader(
         version=Version.read(io_stream),
         name=read_fixed_string(io_stream),
         hierarchy_name=read_fixed_string(io_stream),
         num_frames=read_ulong(io_stream),
         frame_rate=read_ushort(io_stream),
         flavor=read_ushort(io_stream))
 def read(io_stream):
     ver = Version.read(io_stream)
     flags = read_ulong(io_stream)
     return Box(version=ver,
                box_type=(flags & 0b11),
                collision_types=(flags & 0xFF0),
                name_=read_long_fixed_string(io_stream),
                color=RGBA.read(io_stream),
                center=read_vector(io_stream),
                extend=read_vector(io_stream))
 def read(io_stream):
     ver = Version.read(io_stream)
     flags = read_ulong(io_stream)
     return CollisionBox(version=ver,
                         box_type=(flags & ATTRIBUTE_MASK),
                         collision_types=(flags & COLLISION_TYPE_MASK),
                         name_=read_long_fixed_string(io_stream),
                         color=RGBA.read(io_stream),
                         center=read_vector(io_stream),
                         extend=read_vector(io_stream))
示例#5
0
 def read(io_stream):
     return MeshHeader(
         version=Version.read(io_stream),
         attrs=read_ulong(io_stream),
         mesh_name=read_fixed_string(io_stream),
         container_name=read_fixed_string(io_stream),
         face_count=read_ulong(io_stream),
         vert_count=read_ulong(io_stream),
         matl_count=read_ulong(io_stream),
         damage_stage_count=read_ulong(io_stream),
         sort_level=read_ulong(io_stream),
         prelit_version=read_ulong(io_stream),
         future_count=read_ulong(io_stream),
         vert_channel_flags=read_ulong(io_stream),
         face_channel_flags=read_ulong(io_stream),
         # bounding volumes
         min_corner=read_vector(io_stream),
         max_corner=read_vector(io_stream),
         sph_center=read_vector(io_stream),
         sph_radius=read_float(io_stream))
示例#6
0
 def read(io_stream):
     return HLodHeader(
         version=Version.read(io_stream),
         lod_count=read_ulong(io_stream),
         model_name=read_fixed_string(io_stream),
         hierarchy_name=read_fixed_string(io_stream))
示例#7
0
 def read(io_stream):
     return HierarchyHeader(version=Version.read(io_stream),
                            name=read_fixed_string(io_stream),
                            num_pivots=read_ulong(io_stream),
                            center_pos=read_vector(io_stream))