def frame_bin_size(frame):
	"""
	Return the size of an assembled binary frame.
	"""
	return (
		1 + # ANIM_FRAME_BEGIN(duration)
		(0 if frame.hurtbox is None else 5) + # ANIM_HURTBOX
		(0 if frame.hitbox is None else 15) + # ANIM_HITBOX
		(len(frame.sprites) * 5) + # ANIM_SPRITE
		1 # ANIM_FRAME_END
	)