void pyGameScore::FindAgeHighScores(const ST::string& name, uint32_t maxScores, pyKey& rcvr) { if (hsRef<RelVaultNode> ageInfo = VaultGetAgeInfoNode()) { pfGameScore::FindHighScores(ageInfo->GetNodeId(), maxScores, name, rcvr.getKey()); } else hsAssert(false, "Age has no vault... Need to rewrite score python script?"); }
PyObject* pyAgeVault::GetAgeInfo() { hsRef<RelVaultNode> rvn = VaultGetAgeInfoNode(); if (rvn) return pyVaultAgeInfoNode::New(rvn); // just return a None object PYTHON_RETURN_NONE; }
plUUID pyAgeVault::GetAgeGuid( void ) { hsRef<RelVaultNode> rvn = VaultGetAgeInfoNode(); if (rvn) { VaultAgeInfoNode ageInfo(rvn); return ageInfo.GetAgeInstanceGuid(); } return kNilUuid; }
void pyGameScore::CreateAgeScore(const ST::string& name, uint32_t type, int32_t points, pyKey& rcvr) { if (hsRef<RelVaultNode> ageInfo = VaultGetAgeInfoNode()) { uint32_t ownerId = ageInfo->GetNodeId(); pfGameScore::Create(ownerId, name, type, points, rcvr.getKey()); } else hsAssert(false, "Age has no vault... Need to rewrite score python script?"); }