AnimPreloadTable
-
class AnimPreloadTable
Bases:
CopyOnWriteObjectThis table records data about a list of animations for a particular model, such as number of frames and frame rate. It’s used for implementating asynchronous binding.
This table is normally built by an offline tool, such as egg-optchar.
Inheritance diagram
- AnimPreloadTable.__init__()
- AnimPreloadTable.add_anim()
Adds a new animation record to the table. If there is already a record of this name, no operation is performed (the original record is unchanged). See
find_anim(). This will invalidate existing index numbers.
- AnimPreloadTable.add_anims_from()
Copies the animation records from the other table into this one. If a given record name exists in both tables, the record in this one supercedes.
- AnimPreloadTable.clear_anims()
Removes all animation records from the table.
- AnimPreloadTable.find_anim()
Returns the index number in the table of the animation record with the indicated name, or -1 if the name is not present. By convention, the basename is the filename of the egg or bam file, without the directory part and without the extension. That is, it is
Filename::get_basename_wo_extension().
- AnimPreloadTable.get_base_frame_rate()
Returns the frame rate stored for the nth animation record.
- AnimPreloadTable.get_basename()
Returns the basename stored for the nth animation record. See
find_anim().
- static AnimPreloadTable.get_class_type()
- AnimPreloadTable.get_num_anims()
Returns the number of animation records in the table.
- AnimPreloadTable.get_num_frames()
Returns the number of frames stored for the nth animation record.
- AnimPreloadTable.output()
- AnimPreloadTable.remove_anim()
Removes the nth animation records from the table. This renumbers indexes for following animations.
- AnimPreloadTable.write()
