Skip to content
Snippets Groups Projects
Commit 5eecc6ca authored by Brad Payne (Vir Linden)'s avatar Brad Payne (Vir Linden)
Browse files

SL-10499 - Added picks_limit to benefits info. Will be needed in profiles eventually.

parent 4300b204
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,7 @@ LLAgentBenefits::LLAgentBenefits(): ...@@ -32,6 +32,7 @@ LLAgentBenefits::LLAgentBenefits():
m_animation_upload_cost(-1), m_animation_upload_cost(-1),
m_attachment_limit(-1), m_attachment_limit(-1),
m_group_membership_limit(-1), m_group_membership_limit(-1),
m_picks_limit(-1),
m_sound_upload_cost(-1), m_sound_upload_cost(-1),
m_texture_upload_cost(-1) m_texture_upload_cost(-1)
{ {
...@@ -81,6 +82,10 @@ bool LLAgentBenefits::init(const LLSD& benefits_sd) ...@@ -81,6 +82,10 @@ bool LLAgentBenefits::init(const LLSD& benefits_sd)
{ {
return false; return false;
} }
if (!get_required_S32(benefits_sd, "picks_limit", m_picks_limit))
{
return false;
}
if (!get_required_S32(benefits_sd, "sound_upload_cost", m_sound_upload_cost)) if (!get_required_S32(benefits_sd, "sound_upload_cost", m_sound_upload_cost))
{ {
return false; return false;
...@@ -120,6 +125,11 @@ S32 LLAgentBenefits::getGroupMembershipLimit() const ...@@ -120,6 +125,11 @@ S32 LLAgentBenefits::getGroupMembershipLimit() const
return m_group_membership_limit; return m_group_membership_limit;
} }
S32 LLAgentBenefits::getPicksLimit() const
{
return m_picks_limit;
}
S32 LLAgentBenefits::getSoundUploadCost() const S32 LLAgentBenefits::getSoundUploadCost() const
{ {
return m_sound_upload_cost; return m_sound_upload_cost;
......
...@@ -44,6 +44,7 @@ class LLAgentBenefits ...@@ -44,6 +44,7 @@ class LLAgentBenefits
S32 getAttachmentLimit() const; S32 getAttachmentLimit() const;
S32 getCreateGroupCost() const; S32 getCreateGroupCost() const;
S32 getGroupMembershipLimit() const; S32 getGroupMembershipLimit() const;
S32 getPicksLimit() const;
S32 getSoundUploadCost() const; S32 getSoundUploadCost() const;
S32 getTextureUploadCost() const; S32 getTextureUploadCost() const;
...@@ -55,6 +56,7 @@ class LLAgentBenefits ...@@ -55,6 +56,7 @@ class LLAgentBenefits
S32 m_attachment_limit; S32 m_attachment_limit;
S32 m_create_group_cost; S32 m_create_group_cost;
S32 m_group_membership_limit; S32 m_group_membership_limit;
S32 m_picks_limit;
S32 m_sound_upload_cost; S32 m_sound_upload_cost;
S32 m_texture_upload_cost; S32 m_texture_upload_cost;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment