MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / Swap

Method Swap

src/openrct2/AssetPackManager.cpp:107–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 void AssetPackManager::Swap(size_t index, size_t otherIndex)
108 {
109 if (index < _assetPacks.size() && otherIndex < _assetPacks.size() && index != otherIndex)
110 {
111 std::swap(_assetPacks[index], _assetPacks[otherIndex]);
112 }
113 }
114
115 void AssetPackManager::LoadSamplesForObject(std::string_view id, AudioSampleTable& objectTable)
116 {

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected