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

Function importNullEntity

src/OpenLoco/src/S5/S5Entity.cpp:472–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470 }
471
472 static OpenLoco::Entity importNullEntity(const S5::Entity& src)
473 {
474 OpenLoco::Entity dst{};
475 dst.baseType = EntityBaseType::null;
476 dst.nextEntityId = static_cast<EntityId>(src.base.nextEntityId);
477 dst.llPreviousId = static_cast<EntityId>(src.base.llPreviousId);
478 dst.id = static_cast<EntityId>(src.base.id);
479 dst.linkedListOffset = src.base.linkedListOffset;
480 return dst;
481 }
482
483 static OpenLoco::Entity importEntityBase(const S5::EntityBase& src)
484 {

Callers 1

importEntityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected