MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / GetUGCItem

Method GetUGCItem

Source/Internal/modloading.cpp:1542–1554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1540
1541#if ENABLE_STEAMWORKS
1542SteamworksUGCItem* ModInstance::GetUGCItem() {
1543 SteamworksUGC* ugc = Steamworks::Instance()->GetUGC();
1544 if (ugc) {
1545 std::vector<SteamworksUGCItem*>::iterator ugc_it = ugc->GetItem(ugc_id);
1546 if (ugc_it != ugc->GetItemEnd()) {
1547 return (*ugc_it);
1548 } else {
1549 return NULL;
1550 }
1551 } else {
1552 return NULL;
1553 }
1554}
1555#endif
1556
1557bool ModInstance::IsOwnedByCurrentUser() {

Callers 5

OpenWebPageToModMethod · 0.80
DrawAdvancedModMenuFunction · 0.80
DrawUpdateToSteamworksFunction · 0.80

Calls 3

GetUGCMethod · 0.80
GetItemEndMethod · 0.80
GetItemMethod · 0.45

Tested by

no test coverage detected