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

Function exportEntityBase

src/OpenLoco/src/S5/S5Entity.cpp:34–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 static EntityBase exportEntityBase(const OpenLoco::EntityBase& src, const uint8_t type, const uint16_t vehicleFlags)
35 {
36 EntityBase dst{};
37 dst.baseType = enumValue(src.baseType);
38 dst.type = type;
39 dst.nextQuadrantId = enumValue(src.nextQuadrantId);
40 dst.nextEntityId = enumValue(src.nextEntityId);
41 dst.llPreviousId = enumValue(src.llPreviousId);
42 dst.linkedListOffset = src.linkedListOffset;
43 dst.spriteHeightNegative = src.spriteHeightNegative;
44 dst.id = enumValue(src.id);
45 dst.vehicleFlags = vehicleFlags;
46 dst.position = src.position;
47 dst.spriteWidth = src.spriteWidth;
48 dst.spriteHeightPositive = src.spriteHeightPositive;
49 dst.spriteLeft = Location::null;
50 dst.spriteTop = Location::null;
51 dst.spriteRight = Location::null;
52 dst.spriteBottom = Location::null;
53 dst.spriteYaw = src.spriteYaw;
54 dst.spritePitch = enumValue(src.spritePitch);
55 dst.owner = enumValue(src.owner);
56 dst.name = src.name;
57
58 return dst;
59 }
60
61 static Entity exportExhaust(const OpenLoco::Exhaust& src)
62 {

Callers 14

exportExhaustFunction · 0.85
exportMoneyEffectFunction · 0.85
exportExplosionCloudFunction · 0.85
exportSplashFunction · 0.85
exportFireballFunction · 0.85
exportExplosionSmokeFunction · 0.85
exportSmokeFunction · 0.85
exportVehicleHeadFunction · 0.85
exportVehicle1Function · 0.85
exportVehicle2Function · 0.85
exportVehicleBogieFunction · 0.85

Calls 1

enumValueFunction · 0.85

Tested by

no test coverage detected