| 42 | } |
| 43 | |
| 44 | bool CreatureEffect::importFromStream(std::istream& is) |
| 45 | { |
| 46 | if(!(is >> mNbTurnsEffect)) |
| 47 | return false; |
| 48 | if(!(is >> mParticleEffectScript)) |
| 49 | return false; |
| 50 | |
| 51 | if(mParticleEffectScript == "none") |
| 52 | mParticleEffectScript.clear(); |
| 53 | |
| 54 | return true; |
| 55 | } |