MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / importFromStream

Method importFromStream

source/creatureeffect/CreatureEffect.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44bool 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}

Callers 2

loadMethod · 0.45
loadMethod · 0.45

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected