From: Jarda B. <edh...@us...> - 2005-07-10 17:07:55
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/ITMImporter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26561/gemrb/plugins/ITMImporter Modified Files: ITMImp.cpp Log Message: Separated effects to EFFImporter. Implemented EFF V2.0 Fixed loading of effects in games other than PST Index: ITMImp.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/ITMImporter/ITMImp.cpp,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** ITMImp.cpp 19 Feb 2005 19:09:48 -0000 1.15 --- ITMImp.cpp 10 Jul 2005 17:07:15 -0000 1.16 *************** *** 23,26 **** --- 23,27 ---- #include "../Core/Interface.h" #include "../Core/AnimationMgr.h" + #include "../Core/EffectMgr.h" #include "ITMImp.h" *************** *** 215,235 **** } ! void ITMImp::GetFeature(Effect *f) { ! str->ReadWord( &f->Opcode ); ! str->Read( &f->Target,1 ); ! str->Read( &f->Power,1 ); ! str->ReadDword( &f->Parameter1 ); ! str->ReadDword( &f->Parameter2 ); ! str->Read( &f->TimingMode,1 ); ! str->Read( &f->Resistance,1 ); ! str->ReadDword( &f->Duration ); ! str->Read( &f->Probability1,1 ); ! str->Read( &f->Probability2,1 ); ! str->ReadResRef( f->Resource ); ! str->ReadDword( &f->DiceThrown ); ! str->ReadDword( &f->DiceSides ); ! str->ReadDword( &f->SavingThrowType ); ! str->ReadDword( &f->SavingThrowBonus ); ! str->ReadDword( &f->unknown ); } --- 216,224 ---- } ! void ITMImp::GetFeature(Effect *fx) { ! EffectMgr* eM = ( EffectMgr* ) core->GetInterface( IE_EFF_CLASS_ID ); ! eM->Open( str, false ); ! eM->GetEffect( fx ); ! core->FreeInterface( eM ); } |