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

Function generateConnections

src/OpenLoco/src/Map/Track/TrackData.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace OpenLoco::World::TrackData
11{
12 constexpr ConnectionsByRotation generateConnections(uint8_t connection)
13 {
14 return {
15 connection,
16 std::rotl(connection, 2),
17 std::rotl(connection, 4),
18 std::rotl(connection, 6),
19 };
20 }
21
22 const std::array<PreviewTrack, 1> trackPiece0 = {
23 PreviewTrack{ 0, 0, 0, 0, 0, QuarterTile{ 0b1111, 0b0000 }, PreviewTrackFlags::none, generateConnections(0xFF) },

Callers 1

TrackData.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected