From: Jarda B. <edh...@us...> - 2005-07-10 17:07:55
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/SPLImporter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26561/gemrb/plugins/SPLImporter Modified Files: SPLImp.cpp Log Message: Separated effects to EFFImporter. Implemented EFF V2.0 Fixed loading of effects in games other than PST Index: SPLImp.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/SPLImporter/SPLImp.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** SPLImp.cpp 19 Feb 2005 19:09:48 -0000 1.10 --- SPLImp.cpp 10 Jul 2005 17:07:14 -0000 1.11 *************** *** 23,26 **** --- 23,27 ---- #include "../Core/Interface.h" #include "../Core/AnimationMgr.h" + #include "../Core/EffectMgr.h" #include "SPLImp.h" *************** *** 160,180 **** } ! void SPLImp::GetFeature(SPLFeature *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 ); } --- 161,169 ---- } ! void SPLImp::GetFeature(SPLFeature *fx) { ! EffectMgr* eM = ( EffectMgr* ) core->GetInterface( IE_EFF_CLASS_ID ); ! eM->Open( str, false ); ! eM->GetEffect( fx ); ! core->FreeInterface( eM ); } |