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

Method exportToStream

source/entities/GameEntity.cpp:405–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405void GameEntity::exportToStream(std::ostream& os) const
406{
407 int seatId = -1;
408 if(mSeat != nullptr)
409 seatId = mSeat->getId();
410
411 os << seatId << "\t";
412 os << mName << "\t";
413 os << mMeshName << "\t";
414 os << mPosition.x << "\t" << mPosition.y << "\t" << mPosition.z << "\t";
415
416 // We do not export to stream the particle effects. It is the entity work to know if
417 // they should be exported or not
418}
419
420bool GameEntity::importFromStream(std::istream& is)
421{

Callers

nothing calls this directly

Calls 2

getIdMethod · 0.45
exportHeadersToStreamMethod · 0.45

Tested by

no test coverage detected