MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / exportNullEntity

Function exportNullEntity

src/OpenLoco/src/S5/S5Entity.cpp:22–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace OpenLoco::S5
21{
22 static Entity exportNullEntity(const OpenLoco::Entity& src)
23 {
24 Entity dst{};
25 dst.base.baseType = enumValue(src.baseType);
26 dst.base.nextEntityId = enumValue(src.nextEntityId);
27 dst.base.llPreviousId = enumValue(src.llPreviousId);
28 dst.base.id = enumValue(src.id);
29 dst.base.linkedListOffset = src.linkedListOffset;
30
31 return dst;
32 }
33
34 static EntityBase exportEntityBase(const OpenLoco::EntityBase& src, const uint8_t type, const uint16_t vehicleFlags)
35 {

Callers 1

exportEntityFunction · 0.85

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected