| 403 | } |
| 404 | |
| 405 | void 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 | |
| 420 | bool GameEntity::importFromStream(std::istream& is) |
| 421 | { |
nothing calls this directly
no test coverage detected