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

Function importMessage

src/OpenLoco/src/S5/S5Message.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 OpenLoco::Message importMessage(const S5::Message& src)
22 {
23 OpenLoco::Message dst{};
24 dst.type = static_cast<MessageType>(src.type);
25 std::memcpy(dst.messageString, src.messageString, sizeof(dst.messageString));
26 dst.companyId = static_cast<CompanyId>(src.companyId);
27 dst.timeActive = src.timeActive;
28 std::ranges::copy(src.itemSubjects, dst.itemSubjects);
29 dst.date = src.date;
30 return dst;
31 }
32}

Callers 1

importGeneralStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected