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

Method importFromStream

source/entities/CraftedTrap.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool CraftedTrap::importFromStream(std::istream& is)
83{
84 if(!RenderedMovableEntity::importFromStream(is))
85 return false;
86 if(!(is >> mTrapType >> mPosition.x >> mPosition.y >> mPosition.z))
87 return false;
88
89 return true;
90}
91
92std::string CraftedTrap::getCraftedTrapStreamFormat()
93{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected