comparison Chest.cpp @ 703:a9c1fb7483c2

monster parser almost complete.
author Gloval
date Tue, 19 Mar 2013 01:33:35 +0400
parents d5b16a44d9b3
children ef4d646d738d
comparison
equal deleted inserted replaced
701:d5b16a44d9b3 703:a9c1fb7483c2
684 if ( fgets(&Buf, 490, v4) ) 684 if ( fgets(&Buf, 490, v4) )
685 { 685 {
686 do 686 do
687 { 687 {
688 *strchr(&Buf, 10) = 0; 688 *strchr(&Buf, 10) = 0;
689 memcpy(&v17, texture_frame_table_txt_parser(&Buf, &v16), sizeof(v17)); 689 memcpy(&v17, txt_file_frametable_parser(&Buf, &v16), sizeof(v17));
690 if ( v17.uPropCount && *v17.pProperties[0] != 47 ) 690 if ( v17.uPropCount && *v17.pProperties[0] != 47 )
691 ++Argsa; 691 ++Argsa;
692 } 692 }
693 while ( fgets(&Buf, 490, File) ); 693 while ( fgets(&Buf, 490, File) );
694 v5 = Argsa; 694 v5 = Argsa;
705 v2->uNumChests = v3; 705 v2->uNumChests = v3;
706 fseek(v8, v3, v3); 706 fseek(v8, v3, v3);
707 for ( i = fgets(&Buf, 490, File); i; i = fgets(&Buf, 490, File) ) 707 for ( i = fgets(&Buf, 490, File); i; i = fgets(&Buf, 490, File) )
708 { 708 {
709 *strchr(&Buf, 10) = 0; 709 *strchr(&Buf, 10) = 0;
710 memcpy(&v17, texture_frame_table_txt_parser(&Buf, &v16), sizeof(v17)); 710 memcpy(&v17, txt_file_frametable_parser(&Buf, &v16), sizeof(v17));
711 if ( v17.uPropCount && *v17.pProperties[0] != 47 ) 711 if ( v17.uPropCount && *v17.pProperties[0] != 47 )
712 { 712 {
713 strcpy(v2->pChests[v2->uNumChests].pName, v17.pProperties[0]); 713 strcpy(v2->pChests[v2->uNumChests].pName, v17.pProperties[0]);
714 v10 = atoi(v17.pProperties[1]); 714 v10 = atoi(v17.pProperties[1]);
715 v11 = v17.pProperties[2]; 715 v11 = v17.pProperties[2];