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

Method getSaveString

2D Minecraft v 1.0/src/entity/Entity.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 std::string Entity::getSaveString() const {
26 return "New Entity"
27 "\ntype = "
28 "\nxpos = " + toString(position.x) +
29 "\nypos = " + toString(position.y) +
30 "\nwidth = " + toString(size.x) +
31 "\nheight = " + toString(size.y) +
32 "\nmass = " + toString(mass);
33 }
34
35 int Entity::numOfEntities = 0;
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected