def load_spheres(__, fichier): is_sphere = 16777216 int_obj = base.base_int(fichier.read(4)) __.list_spheres = [] temp = 1 while temp and (int_obj & is_sphere) == is_sphere: __.load_sphere(int_obj) temp = fichier.read(4) int_obj = base.base_int(temp) if temp: __.load_blocs(fichier, int_obj)
def load_blocs(__, fichier, int_bloc): temp = 1 while temp: __.load_bloc(int_bloc) temp = fichier.read(4) int_bloc = base.base_int(temp)