MCPcopy Create free account
hub / github.com/OfficialCodeNoodles/2D-Minecraft / getSaveString

Method getSaveString

2D Minecraft v 1.0/src/entity/Mob.cpp:307–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected