Esempio n. 1
0
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?");
}
Esempio n. 2
0
PyObject* pyAgeVault::GetAgeInfo()
{
    hsRef<RelVaultNode> rvn = VaultGetAgeInfoNode();
    if (rvn)
        return pyVaultAgeInfoNode::New(rvn);

    // just return a None object
    PYTHON_RETURN_NONE;
}
Esempio n. 3
0
plUUID pyAgeVault::GetAgeGuid( void )
{
    hsRef<RelVaultNode> rvn = VaultGetAgeInfoNode();
    if (rvn) {
        VaultAgeInfoNode ageInfo(rvn);
        return ageInfo.GetAgeInstanceGuid();
    }
    return kNilUuid;
}
Esempio n. 4
0
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?");
}