| 305 | } |
| 306 | |
| 307 | std::string Mob::getSaveString() const { |
| 308 | std::string saveString = Entity::getSaveString(); |
| 309 | |
| 310 | const size_t symbolOffset = saveString.find_first_of('='); |
| 311 | saveString.insert( |
| 312 | symbolOffset + 1, " " + toString( |
| 313 | static_cast<int>(Entity::Type::Mob)) |
| 314 | ); |
| 315 | |
| 316 | return saveString + |
| 317 | "\nmobType = " + toString(type); |
| 318 | } |
| 319 | |
| 320 | const Model::Id Mob::mobModelIds[End] = { |
| 321 | Model::Id::Zombie, Model::Id::Skeleton, |
nothing calls this directly
no outgoing calls
no test coverage detected